(t *testing.T)
| 545 | } |
| 546 | |
| 547 | func TestPrinterPrintAssignBitwiseOr(t *testing.T) { |
| 548 | o := bytes.NewBufferString("") |
| 549 | |
| 550 | p := printer.NewPrinter(o) |
| 551 | p.Print(&assign.BitwiseOr{ |
| 552 | Variable: &expr.Variable{ |
| 553 | VarName: &node.Identifier{Value: "a"}, |
| 554 | }, |
| 555 | Expression: &expr.Variable{ |
| 556 | VarName: &node.Identifier{Value: "b"}, |
| 557 | }, |
| 558 | }) |
| 559 | |
| 560 | expected := `$a|=$b` |
| 561 | actual := o.String() |
| 562 | |
| 563 | if expected != actual { |
| 564 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 565 | } |
| 566 | } |
| 567 | |
| 568 | func TestPrinterPrintAssignBitwiseXor(t *testing.T) { |
| 569 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…