MCPcopy Create free account
hub / github.com/github/gh-aw / TestParseReactionConfigMapAllTargetsDisabled

Function TestParseReactionConfigMapAllTargetsDisabled

pkg/workflow/reactions_test.go:202–212  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

200}
201
202func TestParseReactionConfigMapAllTargetsDisabled(t *testing.T) {
203 _, _, _, _, err := parseReactionConfig(map[string]any{
204 "type": "eyes",
205 "issues": false,
206 "pull-requests": false,
207 "discussions": false,
208 })
209 if err == nil {
210 t.Fatal("Expected parseReactionConfig to fail when all reaction targets are disabled")
211 }
212}

Callers

nothing calls this directly

Calls 1

parseReactionConfigFunction · 0.85

Tested by

no test coverage detected