mock

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 4 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 MockFilesStorage

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

MockFilesStorage is a mock of FilesStorage interface

func NewMockFilesStorage

func NewMockFilesStorage(ctrl *gomock.Controller) *MockFilesStorage

NewMockFilesStorage creates a new mock instance

func (*MockFilesStorage) EXPECT

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

func (*MockFilesStorage) GetFiles

func (m *MockFilesStorage) GetFiles(ctx context.Context, scanID string) (model.FileMetadatas, error)

GetFiles mocks base method

func (*MockFilesStorage) SaveVulnerabilities

func (m *MockFilesStorage) SaveVulnerabilities(ctx context.Context, vulnerabilities []model.Vulnerability) error

SaveVulnerabilities mocks base method

type MockFilesStorageMockRecorder

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

MockFilesStorageMockRecorder is the mock recorder for MockFilesStorage

func (*MockFilesStorageMockRecorder) GetFiles

func (mr *MockFilesStorageMockRecorder) GetFiles(ctx, scanID interface{}) *gomock.Call

GetFiles indicates an expected call of GetFiles

func (*MockFilesStorageMockRecorder) SaveVulnerabilities

func (mr *MockFilesStorageMockRecorder) SaveVulnerabilities(ctx, vulnerabilities interface{}) *gomock.Call

SaveVulnerabilities indicates an expected call of SaveVulnerabilities

type MockQueriesSource

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

MockQueriesSource is a mock of QueriesSource interface

func NewMockQueriesSource

func NewMockQueriesSource(ctrl *gomock.Controller) *MockQueriesSource

NewMockQueriesSource creates a new mock instance

func (*MockQueriesSource) EXPECT

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

func (*MockQueriesSource) GetGenericQuery added in v1.1.2

func (m *MockQueriesSource) GetGenericQuery(platform string) (string, error)

GetQueries mocks base method

func (*MockQueriesSource) GetQueries

func (m *MockQueriesSource) GetQueries() ([]model.QueryMetadata, error)

GetQueries mocks base method

type MockQueriesSourceMockRecorder

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

MockQueriesSourceMockRecorder is the mock recorder for MockQueriesSource

func (*MockQueriesSourceMockRecorder) GetGenericQuery added in v1.1.2

func (mr *MockQueriesSourceMockRecorder) GetGenericQuery(platform string) *gomock.Call

GetQueries indicates an expected call of GetQueries

func (*MockQueriesSourceMockRecorder) GetQueries

func (mr *MockQueriesSourceMockRecorder) GetQueries() *gomock.Call

GetQueries indicates an expected call of GetQueries

Jump to

Keyboard shortcuts

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