(t *testing.T)
| 1928 | } |
| 1929 | |
| 1930 | func TestPrinterPrintInclude(t *testing.T) { |
| 1931 | o := bytes.NewBufferString("") |
| 1932 | |
| 1933 | p := printer.NewPrinter(o) |
| 1934 | p.Print(&expr.Include{ |
| 1935 | Expr: &scalar.String{Value: "'path'"}, |
| 1936 | }) |
| 1937 | |
| 1938 | expected := `include 'path'` |
| 1939 | actual := o.String() |
| 1940 | |
| 1941 | if expected != actual { |
| 1942 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 1943 | } |
| 1944 | } |
| 1945 | |
| 1946 | func TestPrinterPrintIncludeOnce(t *testing.T) { |
| 1947 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…