(t *testing.T)
| 1944 | } |
| 1945 | |
| 1946 | func TestPrinterPrintIncludeOnce(t *testing.T) { |
| 1947 | o := bytes.NewBufferString("") |
| 1948 | |
| 1949 | p := printer.NewPrinter(o) |
| 1950 | p.Print(&expr.IncludeOnce{ |
| 1951 | Expr: &scalar.String{Value: "'path'"}, |
| 1952 | }) |
| 1953 | |
| 1954 | expected := `include_once 'path'` |
| 1955 | actual := o.String() |
| 1956 | |
| 1957 | if expected != actual { |
| 1958 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 1959 | } |
| 1960 | } |
| 1961 | |
| 1962 | func TestPrinterPrintInstanceOf(t *testing.T) { |
| 1963 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…