(t *testing.T)
| 3489 | } |
| 3490 | |
| 3491 | func TestPrintNamespace(t *testing.T) { |
| 3492 | o := bytes.NewBufferString("") |
| 3493 | |
| 3494 | p := printer.NewPrettyPrinter(o, " ") |
| 3495 | p.Print(&stmt.Namespace{ |
| 3496 | NamespaceName: &name.Name{Parts: []node.Node{&name.NamePart{Value: "Foo"}}}, |
| 3497 | }) |
| 3498 | |
| 3499 | expected := `namespace Foo;` |
| 3500 | actual := o.String() |
| 3501 | |
| 3502 | if expected != actual { |
| 3503 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 3504 | } |
| 3505 | } |
| 3506 | |
| 3507 | func TestPrintNamespaceWithStmts(t *testing.T) { |
| 3508 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…