(imgName string)
| 16 | type MockClient struct{} |
| 17 | |
| 18 | func (c MockClient) GetImageDigest(imgName string) (*v1.Hash, name.Reference, error) { |
| 19 | return &v1.Hash{ |
| 20 | Hex: "1234567890abcdef", |
| 21 | Algorithm: "sha256", |
| 22 | }, nil, nil |
| 23 | } |
| 24 | |
| 25 | func (c MockClient) GetAttestations(name name.Reference, digest string) ([]*api.Attestation, error) { |
| 26 | att1 := makeTestAttestation() |
nothing calls this directly
no outgoing calls
no test coverage detected