(t *testing.T)
| 820 | } |
| 821 | |
| 822 | func TestPrinterPrintBinaryBitwiseOr(t *testing.T) { |
| 823 | o := bytes.NewBufferString("") |
| 824 | |
| 825 | p := printer.NewPrinter(o) |
| 826 | p.Print(&binary.BitwiseOr{ |
| 827 | Left: &expr.Variable{ |
| 828 | VarName: &node.Identifier{Value: "a"}, |
| 829 | }, |
| 830 | Right: &expr.Variable{ |
| 831 | VarName: &node.Identifier{Value: "b"}, |
| 832 | }, |
| 833 | }) |
| 834 | |
| 835 | expected := `$a|$b` |
| 836 | actual := o.String() |
| 837 | |
| 838 | if expected != actual { |
| 839 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 840 | } |
| 841 | } |
| 842 | |
| 843 | func TestPrinterPrintBinaryBitwiseXor(t *testing.T) { |
| 844 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…