node
(t *testing.T)
| 122 | // node |
| 123 | |
| 124 | func TestPrinterPrintIdentifier(t *testing.T) { |
| 125 | o := bytes.NewBufferString("") |
| 126 | |
| 127 | p := printer.NewPrinter(o) |
| 128 | n := &node.Identifier{ |
| 129 | Value: "test", |
| 130 | } |
| 131 | p.Print(n) |
| 132 | |
| 133 | expected := `test` |
| 134 | actual := o.String() |
| 135 | |
| 136 | if expected != actual { |
| 137 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | func TestPrinterPrintParameter(t *testing.T) { |
| 142 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…