Skip to content

Commit

Permalink
Remove irrelevant methods from forbiddenImageMock
Browse files Browse the repository at this point in the history
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
  • Loading branch information
mtrmac committed Jun 13, 2022
1 parent 75b13b2 commit 0b743fb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions signature/policy_reference_match_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,18 +353,12 @@ type forbiddenImageMock struct{}
func (ref forbiddenImageMock) Reference() types.ImageReference {
panic("unexpected call to a mock function")
}
func (ref forbiddenImageMock) Close() error {
panic("unexpected call to a mock function")
}
func (ref forbiddenImageMock) Manifest(ctx context.Context) ([]byte, string, error) {
panic("unexpected call to a mock function")
}
func (ref forbiddenImageMock) Signatures(context.Context) ([][]byte, error) {
panic("unexpected call to a mock function")
}
func (ref forbiddenImageMock) LayerInfosForCopy(ctx context.Context) ([]types.BlobInfo, error) {
panic("unexpected call to a mock function")
}

func testExactPRMAndSig(t *testing.T, prmFactory func(string) PolicyReferenceMatch, imageRef, sigRef string, result bool) {
prm := prmFactory(imageRef)
Expand Down

0 comments on commit 0b743fb

Please sign in to comment.