(t *testing.T)
| 3888 | } |
| 3889 | |
| 3890 | func TestPrinterPrintNamespace(t *testing.T) { |
| 3891 | o := bytes.NewBufferString("") |
| 3892 | |
| 3893 | p := printer.NewPrinter(o) |
| 3894 | p.Print(&stmt.Namespace{ |
| 3895 | NamespaceName: &name.Name{Parts: []node.Node{&name.NamePart{Value: "Foo"}}}, |
| 3896 | }) |
| 3897 | |
| 3898 | expected := `namespace Foo;` |
| 3899 | actual := o.String() |
| 3900 | |
| 3901 | if expected != actual { |
| 3902 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 3903 | } |
| 3904 | } |
| 3905 | |
| 3906 | func TestPrinterPrintNamespaceWithStmts(t *testing.T) { |
| 3907 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…