MCPcopy Create free account
hub / github.com/Facets-cloud/flow / expectedCommand

Function expectedCommand

internal/app/skill_test.go:51–59  ·  view source on GitHub ↗
(event string)

Source from the content-addressed store, hash-verified

49 t.Fatalf("parse settings: %v\nraw: %s", err, raw)
50 }
51 return m
52}
53
54func hookEventReferencesCommand(hooks map[string]any, event, command string) bool {
55 entries, _ := hooks[event].([]any)
56 return countMatchingHookEntries(entries, command) >= 1
57}
58
59func countMatchingHookEntries(entries []any, command string) int {
60 n := 0
61 for _, entry := range entries {
62 m, ok := entry.(map[string]any)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected