(t *testing.T)
| 2636 | } |
| 2637 | |
| 2638 | func TestPrinterPrintAltElseEmpty(t *testing.T) { |
| 2639 | o := bytes.NewBufferString("") |
| 2640 | |
| 2641 | p := printer.NewPrinter(o) |
| 2642 | p.Print(&stmt.AltElse{ |
| 2643 | Stmt: &stmt.StmtList{}, |
| 2644 | }) |
| 2645 | |
| 2646 | expected := `else:` |
| 2647 | actual := o.String() |
| 2648 | |
| 2649 | if expected != actual { |
| 2650 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 2651 | } |
| 2652 | } |
| 2653 | |
| 2654 | func TestPrinterPrintAltFor(t *testing.T) { |
| 2655 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…