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

Function loadStatementForTest

pkg/policies/concurrency_test.go:225–233  ·  view source on GitHub ↗
(t *testing.T, file string)

Source from the content-addressed store, hash-verified

223}
224
225func loadStatementForTest(t *testing.T, file string) *intoto.Statement {
226 t.Helper()
227 stContent, err := os.ReadFile(file)
228 require.NoError(t, err)
229 var statement intoto.Statement
230 err = protojson.Unmarshal(stContent, &statement)
231 require.NoError(t, err)
232 return &statement
233}

Calls

no outgoing calls

Tested by

no test coverage detected