(t *testing.T)
| 1623 | } |
| 1624 | |
| 1625 | func TestPrinterPrintExprBooleanNot(t *testing.T) { |
| 1626 | o := bytes.NewBufferString("") |
| 1627 | |
| 1628 | p := printer.NewPrinter(o) |
| 1629 | p.Print(&expr.BooleanNot{ |
| 1630 | Expr: &expr.Variable{ |
| 1631 | VarName: &node.Identifier{Value: "var"}, |
| 1632 | }, |
| 1633 | }) |
| 1634 | |
| 1635 | expected := `!$var` |
| 1636 | actual := o.String() |
| 1637 | |
| 1638 | if expected != actual { |
| 1639 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 1640 | } |
| 1641 | } |
| 1642 | |
| 1643 | func TestPrinterPrintExprClassConstFetch(t *testing.T) { |
| 1644 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…