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

Function TestBuildEmptyFileList

internal/aiagentconfig/builder_test.go:185–192  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

183}
184
185func TestBuildEmptyFileList(t *testing.T) {
186 rootDir := t.TempDir()
187
188 data, err := Build(rootDir, []DiscoveredFile{}, "claude", nil)
189 require.NoError(t, err)
190 assert.Empty(t, data.ConfigFiles)
191 assert.NotEmpty(t, data.ConfigHash)
192}
193
194func TestBuildNilFileList(t *testing.T) {
195 rootDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

BuildFunction · 0.85

Tested by

no test coverage detected