mock

package
v0.0.0-...-a903c70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

type MockRepository struct {
	// contains filtered or unexported fields
}

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) GetLastImageScan

func (m *MockRepository) GetLastImageScan(ctx context.Context, image string) (*db.ImageScanDto, error)

GetLastImageScan mocks base method.

func (*MockRepository) RegisterImageScan

func (m *MockRepository) RegisterImageScan(ctx context.Context, image string, baseImage *string, scanTime time.Time, success bool, vulnerabilities []db.VulnerabilityBulkDto, identifiers []db.VulnerabilityIdentifierBulkDto, references []db.VulnerabilityReferenceBulkDto) error

RegisterImageScan mocks base method.

type MockRepositoryMockRecorder

type MockRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) GetLastImageScan

func (mr *MockRepositoryMockRecorder) GetLastImageScan(ctx, image interface{}) *gomock.Call

GetLastImageScan indicates an expected call of GetLastImageScan.

func (*MockRepositoryMockRecorder) RegisterImageScan

func (mr *MockRepositoryMockRecorder) RegisterImageScan(ctx, image, baseImage, scanTime, success, vulnerabilities, identifiers, references interface{}) *gomock.Call

RegisterImageScan indicates an expected call of RegisterImageScan.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL