(t *testing.T)
| 2218 | } |
| 2219 | |
| 2220 | func TestPrinterPrintExprReference(t *testing.T) { |
| 2221 | o := bytes.NewBufferString("") |
| 2222 | |
| 2223 | p := printer.NewPrinter(o) |
| 2224 | p.Print(&expr.Reference{ |
| 2225 | Variable: &expr.Variable{ |
| 2226 | VarName: &node.Identifier{Value: "foo"}, |
| 2227 | }, |
| 2228 | }) |
| 2229 | |
| 2230 | expected := `&$foo` |
| 2231 | actual := o.String() |
| 2232 | |
| 2233 | if expected != actual { |
| 2234 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 2235 | } |
| 2236 | } |
| 2237 | |
| 2238 | func TestPrinterPrintRequire(t *testing.T) { |
| 2239 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…