(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestRun_MissingInputs(t *testing.T) { |
| 13 | _, err := Run(&Opts{ |
| 14 | Filenames: []string{}, |
| 15 | Iterations: 10, |
| 16 | Engine: EngineRego, |
| 17 | }) |
| 18 | if err == nil { |
| 19 | t.Error("expected error for missing inputs") |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | func TestRun_NoTemplates(t *testing.T) { |
| 24 | // Create a temp file with just an object (no template) |