(t *testing.T)
| 2252 | } |
| 2253 | |
| 2254 | func TestPrinterPrintRequireOnce(t *testing.T) { |
| 2255 | o := bytes.NewBufferString("") |
| 2256 | |
| 2257 | p := printer.NewPrinter(o) |
| 2258 | p.Print(&expr.RequireOnce{ |
| 2259 | Expr: &scalar.String{Value: "'path'"}, |
| 2260 | }) |
| 2261 | |
| 2262 | expected := `require_once 'path'` |
| 2263 | actual := o.String() |
| 2264 | |
| 2265 | if expected != actual { |
| 2266 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 2267 | } |
| 2268 | } |
| 2269 | |
| 2270 | func TestPrinterPrintShellExec(t *testing.T) { |
| 2271 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…