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

Function loadStatement

pkg/policies/policies_test.go:1538–1546  ·  view source on GitHub ↗
(file string, s *suite.Suite)

Source from the content-addressed store, hash-verified

1536}
1537
1538func loadStatement(file string, s *suite.Suite) *intoto.Statement {
1539 stContent, err := os.ReadFile(file)
1540 s.Require().NoError(err)
1541 var statement intoto.Statement
1542 err = protojson.Unmarshal(stContent, &statement)
1543 s.Require().NoError(err)
1544
1545 return &statement
1546}
1547
1548func (s *testSuite) TestIsURLPath() {
1549 cases := []struct {

Calls

no outgoing calls

Tested by

no test coverage detected