(t *testing.T)
| 367 | } |
| 368 | |
| 369 | func TestPrinterPrintScalarString(t *testing.T) { |
| 370 | o := bytes.NewBufferString("") |
| 371 | |
| 372 | p := printer.NewPrinter(o) |
| 373 | p.Print(&scalar.String{ |
| 374 | Value: "'hello world'", |
| 375 | }) |
| 376 | |
| 377 | expected := `'hello world'` |
| 378 | actual := o.String() |
| 379 | |
| 380 | if expected != actual { |
| 381 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | func TestPrinterPrintScalarEncapsedStringPart(t *testing.T) { |
| 386 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…