MCPcopy Create free account
hub / github.com/InferCore/InferCore / writeTempConfig

Function writeTempConfig

internal/config/config_test.go:592–600  ·  view source on GitHub ↗
(t *testing.T, content string)

Source from the content-addressed store, hash-verified

590}
591
592func writeTempConfig(t *testing.T, content string) string {
593 t.Helper()
594 dir := t.TempDir()
595 path := filepath.Join(dir, "config.yaml")
596 if err := os.WriteFile(path, []byte(content), 0o644); err != nil {
597 t.Fatalf("write temp config: %v", err)
598 }
599 return path
600}

Calls

no outgoing calls

Tested by

no test coverage detected