Home | History | Annotate | Download | only in json

Lines Matching full:jsonbig

130 	if err := Compact(&buf, jsonBig); err != nil {
134 if !bytes.Equal(b, jsonBig) {
135 t.Error("Compact(jsonBig) != jsonBig")
136 diff(t, b, jsonBig)
145 if err := Indent(&buf, jsonBig, "", "\t"); err != nil {
149 if len(b) == len(jsonBig) {
150 // jsonBig is compact (no unnecessary spaces);
152 t.Fatalf("Indent(jsonBig) did not get bigger")
162 t.Error("Indent(Indent(jsonBig)) != Indent(jsonBig)")
173 if !bytes.Equal(b1, jsonBig) {
174 t.Error("Compact(Indent(jsonBig)) != jsonBig")
175 diff(t, b1, jsonBig)
206 item, rest, err := nextValue(jsonBig, &scan)
210 if len(item) != len(jsonBig) || &item[0] != &jsonBig[0] {
211 t.Errorf("invalid item: %d %d", len(item), len(jsonBig))
217 item, rest, err = nextValue(append(jsonBig, "HELLO WORLD"...), &scan)
221 if len(item) != len(jsonBig) {
222 t.Errorf("invalid item: %d %d", len(item), len(jsonBig))
235 nextValue(jsonBig, &benchScan)
237 b.SetBytes(int64(len(jsonBig)))
262 var jsonBig []byte
273 jsonBig = b