Lines Matching full:indent
19 indent string
57 if err := Compact(&buf, []byte(tt.indent)); err != nil {
58 t.Errorf("Compact(%#q): %v", tt.indent, err)
61 t.Errorf("Compact(%#q) = %#q, want %#q", tt.indent, s, tt.compact)
89 if err := Indent(&buf, []byte(tt.indent), "", "\t"); err != nil {
90 t.Errorf("Indent(%#q): %v", tt.indent, err)
91 } else if s := buf.String(); s != tt.indent {
92 t.Errorf("Indent(%#q) = %#q, want original", tt.indent, s)
96 if err := Indent(&buf, []byte(tt.compact), "", "\t"); err != nil {
97 t.Errorf("Indent(%#q): %v", tt.compact, err)
99 } else if s := buf.String(); s != tt.indent {
100 t.Errorf("Indent(%#q) = %#q, want %#q", tt.compact, s, tt.indent)
125 if err := Indent(&buf, jsonBig, "", "\t"); err != nil {
132 t.Fatalf("Indent(jsonBig) did not get bigger")
137 if err := Indent(&buf1, b, "", "\t"); err != nil {
142 t.Error("Indent(Indent(jsonBig)) != Indent(jsonBig)")
154 t.Error("Compact(Indent(jsonBig)) != jsonBig")
174 if err := Indent(buf, []uint8(tt.in), "", ""); err != nil {
176 t.Errorf("#%d: Indent: %#v", i, err)