(t *testing.T)
| 1605 | } |
| 1606 | |
| 1607 | func TestPrinterPrintExprBitwiseNot(t *testing.T) { |
| 1608 | o := bytes.NewBufferString("") |
| 1609 | |
| 1610 | p := printer.NewPrinter(o) |
| 1611 | p.Print(&expr.BitwiseNot{ |
| 1612 | Expr: &expr.Variable{ |
| 1613 | VarName: &node.Identifier{Value: "var"}, |
| 1614 | }, |
| 1615 | }) |
| 1616 | |
| 1617 | expected := `~$var` |
| 1618 | actual := o.String() |
| 1619 | |
| 1620 | if expected != actual { |
| 1621 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 1622 | } |
| 1623 | } |
| 1624 | |
| 1625 | func TestPrinterPrintExprBooleanNot(t *testing.T) { |
| 1626 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…