(t *testing.T)
| 383 | } |
| 384 | |
| 385 | func TestPrinterPrintScalarEncapsedStringPart(t *testing.T) { |
| 386 | o := bytes.NewBufferString("") |
| 387 | |
| 388 | p := printer.NewPrinter(o) |
| 389 | p.Print(&scalar.EncapsedStringPart{ |
| 390 | Value: "hello world", |
| 391 | }) |
| 392 | |
| 393 | expected := `hello world` |
| 394 | actual := o.String() |
| 395 | |
| 396 | if expected != actual { |
| 397 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 398 | } |
| 399 | } |
| 400 | |
| 401 | func TestPrinterPrintScalarEncapsed(t *testing.T) { |
| 402 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…