(t *testing.T)
| 862 | } |
| 863 | |
| 864 | func TestPrinterPrintBinaryBooleanAnd(t *testing.T) { |
| 865 | o := bytes.NewBufferString("") |
| 866 | |
| 867 | p := printer.NewPrinter(o) |
| 868 | p.Print(&binary.BooleanAnd{ |
| 869 | Left: &expr.Variable{ |
| 870 | VarName: &node.Identifier{Value: "a"}, |
| 871 | }, |
| 872 | Right: &expr.Variable{ |
| 873 | VarName: &node.Identifier{Value: "b"}, |
| 874 | }, |
| 875 | }) |
| 876 | |
| 877 | expected := `$a&&$b` |
| 878 | actual := o.String() |
| 879 | |
| 880 | if expected != actual { |
| 881 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 882 | } |
| 883 | } |
| 884 | |
| 885 | func TestPrinterPrintBinaryBooleanOr(t *testing.T) { |
| 886 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…