(t *testing.T)
| 1550 | } |
| 1551 | |
| 1552 | func TestPrintInclude(t *testing.T) { |
| 1553 | o := bytes.NewBufferString("") |
| 1554 | |
| 1555 | p := printer.NewPrettyPrinter(o, " ") |
| 1556 | p.Print(&expr.Include{Expr: &scalar.String{Value: "'path'"}}) |
| 1557 | |
| 1558 | expected := `include 'path'` |
| 1559 | actual := o.String() |
| 1560 | |
| 1561 | if expected != actual { |
| 1562 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 1563 | } |
| 1564 | } |
| 1565 | |
| 1566 | func TestPrintIncludeOnce(t *testing.T) { |
| 1567 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…