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_stream.go
generated
vendored
6
vendor/github.com/json-iterator/go/feature_stream.go
generated
vendored
|
|
@ -191,6 +191,9 @@ func (stream *Stream) ensure(minimal int) {
|
|||
func (stream *Stream) growAtLeast(minimal int) {
|
||||
if stream.out != nil {
|
||||
stream.Flush()
|
||||
if stream.Available() >= minimal {
|
||||
return
|
||||
}
|
||||
}
|
||||
toGrow := len(stream.buf)
|
||||
if toGrow < minimal {
|
||||
|
|
@ -280,8 +283,7 @@ func (stream *Stream) WriteArrayStart() {
|
|||
|
||||
// WriteEmptyArray write []
|
||||
func (stream *Stream) WriteEmptyArray() {
|
||||
stream.writeByte('[')
|
||||
stream.writeByte(']')
|
||||
stream.writeTwoBytes('[', ']')
|
||||
}
|
||||
|
||||
// WriteArrayEnd write ] with possible indention
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue