MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / writeFile

Function writeFile

internal/metadata/discover_test.go:11–19  ·  view source on GitHub ↗
(t *testing.T, path, content string)

Source from the content-addressed store, hash-verified

9)
10
11func writeFile(t *testing.T, path, content string) {
12 t.Helper()
13 if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
14 t.Fatal(err)
15 }
16 if err := os.WriteFile(path, []byte(content), 0o644); err != nil {
17 t.Fatal(err)
18 }
19}
20
21func TestDiscoverSkills(t *testing.T) {
22 root := t.TempDir()

Calls

no outgoing calls

Tested by

no test coverage detected