MCPcopy
hub / github.com/open-policy-agent/gatekeeper / TestRun_MissingInputs

Function TestRun_MissingInputs

pkg/gator/bench/bench_test.go:12–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func 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
23func TestRun_NoTemplates(t *testing.T) {
24 // Create a temp file with just an object (no template)

Callers

nothing calls this directly

Calls 2

RunFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…