(t *testing.T)
| 448 | } |
| 449 | |
| 450 | func TestPrintAssignBitwiseAnd(t *testing.T) { |
| 451 | o := bytes.NewBufferString("") |
| 452 | |
| 453 | p := printer.NewPrettyPrinter(o, " ") |
| 454 | p.Print(&assign.BitwiseAnd{ |
| 455 | Variable: &expr.Variable{VarName: &node.Identifier{Value: "a"}}, |
| 456 | Expression: &expr.Variable{VarName: &node.Identifier{Value: "b"}}, |
| 457 | }) |
| 458 | |
| 459 | expected := `$a &= $b` |
| 460 | actual := o.String() |
| 461 | |
| 462 | if expected != actual { |
| 463 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | func TestPrintAssignBitwiseOr(t *testing.T) { |
| 468 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…