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

Function TestSkillInstallErrorsOnExisting

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

Source from the content-addressed store, hash-verified

89}
90
91// withTempHome redirects $HOME to a tempdir for the duration of the test.
92func withTempHome(t *testing.T) string {
93 t.Helper()
94 dir := t.TempDir()
95 oldHome := os.Getenv("HOME")
96 os.Setenv("HOME", dir)
97 t.Cleanup(func() { os.Setenv("HOME", oldHome) })
98 return dir
99}
100
101func TestSkillInstallWritesFile(t *testing.T) {
102 home := withTempHome(t)

Callers

nothing calls this directly

Calls 2

withTempHomeFunction · 0.85
cmdSkillFunction · 0.85

Tested by

no test coverage detected