(t *testing.T)
| 3816 | } |
| 3817 | |
| 3818 | func TestPrinterPrintInlineHtml(t *testing.T) { |
| 3819 | o := bytes.NewBufferString("") |
| 3820 | |
| 3821 | p := printer.NewPrinter(o) |
| 3822 | p.Print(&node.Root{ |
| 3823 | Stmts: []node.Node{ |
| 3824 | &stmt.InlineHtml{ |
| 3825 | Value: "test", |
| 3826 | }, |
| 3827 | }, |
| 3828 | }) |
| 3829 | |
| 3830 | expected := `test` |
| 3831 | actual := o.String() |
| 3832 | |
| 3833 | if expected != actual { |
| 3834 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 3835 | } |
| 3836 | } |
| 3837 | |
| 3838 | func TestPrinterPrintInterface(t *testing.T) { |
| 3839 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…