(t *testing.T)
| 315 | } |
| 316 | |
| 317 | func TestPrintScalarString(t *testing.T) { |
| 318 | o := bytes.NewBufferString("") |
| 319 | |
| 320 | p := printer.NewPrettyPrinter(o, " ") |
| 321 | p.Print(&scalar.String{Value: "'hello world'"}) |
| 322 | |
| 323 | expected := `'hello world'` |
| 324 | actual := o.String() |
| 325 | |
| 326 | if expected != actual { |
| 327 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | func TestPrintScalarEncapsedStringPart(t *testing.T) { |
| 332 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…