(t *testing.T)
| 3872 | } |
| 3873 | |
| 3874 | func TestPrinterPrintLabel(t *testing.T) { |
| 3875 | o := bytes.NewBufferString("") |
| 3876 | |
| 3877 | p := printer.NewPrinter(o) |
| 3878 | p.Print(&stmt.Label{ |
| 3879 | LabelName: &node.Identifier{Value: "FOO"}, |
| 3880 | }) |
| 3881 | |
| 3882 | expected := `FOO:` |
| 3883 | actual := o.String() |
| 3884 | |
| 3885 | if expected != actual { |
| 3886 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 3887 | } |
| 3888 | } |
| 3889 | |
| 3890 | func TestPrinterPrintNamespace(t *testing.T) { |
| 3891 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…