(t *testing.T)
| 1564 | } |
| 1565 | |
| 1566 | func TestPrintIncludeOnce(t *testing.T) { |
| 1567 | o := bytes.NewBufferString("") |
| 1568 | |
| 1569 | p := printer.NewPrettyPrinter(o, " ") |
| 1570 | p.Print(&expr.IncludeOnce{Expr: &scalar.String{Value: "'path'"}}) |
| 1571 | |
| 1572 | expected := `include_once 'path'` |
| 1573 | actual := o.String() |
| 1574 | |
| 1575 | if expected != actual { |
| 1576 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 1577 | } |
| 1578 | } |
| 1579 | |
| 1580 | func TestPrintInstanceOf(t *testing.T) { |
| 1581 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…