Add e2e tests
This commit is contained in:
parent
99a355f25d
commit
601fb7dacf
1163 changed files with 289217 additions and 14195 deletions
6
vendor/github.com/json-iterator/go/feature_iter_skip.go
generated
vendored
6
vendor/github.com/json-iterator/go/feature_iter_skip.go
generated
vendored
|
|
@ -25,7 +25,7 @@ func (iter *Iterator) ReadBool() (ret bool) {
|
|||
iter.skipFourBytes('a', 'l', 's', 'e')
|
||||
return false
|
||||
}
|
||||
iter.ReportError("ReadBool", "expect t or f")
|
||||
iter.ReportError("ReadBool", "expect t or f, but found "+string([]byte{c}))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -59,7 +59,9 @@ func (iter *Iterator) stopCapture() []byte {
|
|||
iter.captureStartedAt = -1
|
||||
iter.captured = nil
|
||||
if len(captured) == 0 {
|
||||
return remaining
|
||||
copied := make([]byte, len(remaining))
|
||||
copy(copied, remaining)
|
||||
return copied
|
||||
}
|
||||
captured = append(captured, remaining...)
|
||||
return captured
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue