MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / createFiles

Function createFiles

internal/aiagentconfig/discover_test.go:28–35  ·  view source on GitHub ↗

createFiles is a test helper that creates files relative to rootDir.

(t *testing.T, rootDir string, files []string)

Source from the content-addressed store, hash-verified

26
27// createFiles is a test helper that creates files relative to rootDir.
28func createFiles(t *testing.T, rootDir string, files []string) {
29 t.Helper()
30 for _, f := range files {
31 absPath := filepath.Join(rootDir, f)
32 require.NoError(t, os.MkdirAll(filepath.Dir(absPath), 0o755))
33 require.NoError(t, os.WriteFile(absPath, []byte("test content"), 0o600))
34 }
35}
36
37func TestDiscoverAll(t *testing.T) {
38 tests := []struct {

Callers 1

TestDiscoverAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected