(t *testing.T)
| 524 | } |
| 525 | |
| 526 | func TestPrinterPrintAssignBitwiseAnd(t *testing.T) { |
| 527 | o := bytes.NewBufferString("") |
| 528 | |
| 529 | p := printer.NewPrinter(o) |
| 530 | p.Print(&assign.BitwiseAnd{ |
| 531 | Variable: &expr.Variable{ |
| 532 | VarName: &node.Identifier{Value: "a"}, |
| 533 | }, |
| 534 | Expression: &expr.Variable{ |
| 535 | VarName: &node.Identifier{Value: "b"}, |
| 536 | }, |
| 537 | }) |
| 538 | |
| 539 | expected := `$a&=$b` |
| 540 | actual := o.String() |
| 541 | |
| 542 | if expected != actual { |
| 543 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 544 | } |
| 545 | } |
| 546 | |
| 547 | func TestPrinterPrintAssignBitwiseOr(t *testing.T) { |
| 548 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…