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

Function TestSkillInstallWritesFile

internal/app/skill_test.go:71–89  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69 if !ok {
70 continue
71 }
72 if cmd, _ := hm["command"].(string); cmd == command {
73 n++
74 break
75 }
76 }
77 }
78 return n
79}
80
81func expectedCommand(event string) string {
82 switch event {
83 case "SessionStart":
84 return "flow hook session-start"
85 case "UserPromptSubmit":
86 return "flow hook user-prompt-submit"
87 }
88 return ""
89}
90
91// withTempHome redirects $HOME to a tempdir for the duration of the test.
92func withTempHome(t *testing.T) string {

Callers

nothing calls this directly

Calls 2

withTempHomeFunction · 0.85
cmdSkillFunction · 0.85

Tested by

no test coverage detected