(t *testing.T)
| 2493 | } |
| 2494 | |
| 2495 | func TestPrinterPrintVariable(t *testing.T) { |
| 2496 | o := bytes.NewBufferString("") |
| 2497 | |
| 2498 | p := printer.NewPrinter(o) |
| 2499 | p.Print(&expr.Variable{ |
| 2500 | VarName: &expr.Variable{ |
| 2501 | VarName: &node.Identifier{Value: "var"}, |
| 2502 | }, |
| 2503 | }) |
| 2504 | |
| 2505 | expected := `$$var` |
| 2506 | actual := o.String() |
| 2507 | |
| 2508 | if expected != actual { |
| 2509 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 2510 | } |
| 2511 | } |
| 2512 | |
| 2513 | func TestPrinterPrintYieldFrom(t *testing.T) { |
| 2514 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…