(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestNewRuntimeErrors(t *testing.T) { |
| 29 | store := metrics.NewStore() |
| 30 | lines := make(chan *logline.LogLine) |
| 31 | var wg sync.WaitGroup |
| 32 | _, err := New(lines, nil, "", store) |
| 33 | if err == nil { |
| 34 | t.Error("New(..., nil) expecting error, got nil") |
| 35 | } |
| 36 | _, err = New(lines, &wg, "", nil) |
| 37 | if err == nil { |
| 38 | t.Error("New(..., nil) expecting error, got nil") |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | func TestCompileAndRun(t *testing.T) { |
| 43 | testProgram := "/$/ {}\n" |