mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIssue

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

MockIssue is a mock of Issue interface.

func NewMockIssue

func NewMockIssue(ctrl *gomock.Controller) *MockIssue

NewMockIssue creates a new mock instance.

func (*MockIssue) EXPECT

func (m *MockIssue) EXPECT() *MockIssueMockRecorder

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

func (*MockIssue) GetCVEs

func (m *MockIssue) GetCVEs() []string

GetCVEs mocks base method.

func (*MockIssue) GetCWEs

func (m *MockIssue) GetCWEs() []string

GetCWEs mocks base method.

func (*MockIssue) GetData

func (m *MockIssue) GetData(key string) (interface{}, bool)

GetData mocks base method.

func (*MockIssue) GetDescription

func (m *MockIssue) GetDescription() string

GetDescription mocks base method.

func (*MockIssue) GetEffectiveSeverity

func (m *MockIssue) GetEffectiveSeverity() string

GetEffectiveSeverity mocks base method.

func (*MockIssue) GetFindingType

func (m *MockIssue) GetFindingType() testapi.FindingType

GetFindingType mocks base method.

func (*MockIssue) GetFindings

func (m *MockIssue) GetFindings() []*testapi.FindingData

GetFindings mocks base method.

func (*MockIssue) GetID

func (m *MockIssue) GetID() string

GetID mocks base method.

func (*MockIssue) GetIgnoreDetails

func (m *MockIssue) GetIgnoreDetails() testapi.IssueIgnoreDetails

GetIgnoreDetails mocks base method.

func (*MockIssue) GetPrimaryProblem

func (m *MockIssue) GetPrimaryProblem() *testapi.Problem

GetPrimaryProblem mocks base method.

func (*MockIssue) GetProblemID

func (m *MockIssue) GetProblemID() string

GetProblemID mocks base method.

func (*MockIssue) GetProblems

func (m *MockIssue) GetProblems() []*testapi.Problem

GetProblems mocks base method.

func (*MockIssue) GetReachability

func (m *MockIssue) GetReachability() *testapi.ReachabilityEvidence

GetReachability mocks base method.

func (*MockIssue) GetRiskScore

func (m *MockIssue) GetRiskScore() uint16

GetRiskScore mocks base method.

func (*MockIssue) GetSeverity

func (m *MockIssue) GetSeverity() string

GetSeverity mocks base method.

func (*MockIssue) GetSourceLocations

func (m *MockIssue) GetSourceLocations() []testapi.SourceLocation

GetSourceLocations mocks base method.

func (*MockIssue) GetTitle

func (m *MockIssue) GetTitle() string

GetTitle mocks base method.

type MockIssueMockRecorder

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

MockIssueMockRecorder is the mock recorder for MockIssue.

func (*MockIssueMockRecorder) GetCVEs

func (mr *MockIssueMockRecorder) GetCVEs() *gomock.Call

GetCVEs indicates an expected call of GetCVEs.

func (*MockIssueMockRecorder) GetCWEs

func (mr *MockIssueMockRecorder) GetCWEs() *gomock.Call

GetCWEs indicates an expected call of GetCWEs.

func (*MockIssueMockRecorder) GetData

func (mr *MockIssueMockRecorder) GetData(key interface{}) *gomock.Call

GetData indicates an expected call of GetData.

func (*MockIssueMockRecorder) GetDescription

func (mr *MockIssueMockRecorder) GetDescription() *gomock.Call

GetDescription indicates an expected call of GetDescription.

func (*MockIssueMockRecorder) GetEffectiveSeverity

func (mr *MockIssueMockRecorder) GetEffectiveSeverity() *gomock.Call

GetEffectiveSeverity indicates an expected call of GetEffectiveSeverity.

func (*MockIssueMockRecorder) GetFindingType

func (mr *MockIssueMockRecorder) GetFindingType() *gomock.Call

GetFindingType indicates an expected call of GetFindingType.

func (*MockIssueMockRecorder) GetFindings

func (mr *MockIssueMockRecorder) GetFindings() *gomock.Call

GetFindings indicates an expected call of GetFindings.

func (*MockIssueMockRecorder) GetID

func (mr *MockIssueMockRecorder) GetID() *gomock.Call

GetID indicates an expected call of GetID.

func (*MockIssueMockRecorder) GetIgnoreDetails

func (mr *MockIssueMockRecorder) GetIgnoreDetails() *gomock.Call

GetIgnoreDetails indicates an expected call of GetIgnoreDetails.

func (*MockIssueMockRecorder) GetPrimaryProblem

func (mr *MockIssueMockRecorder) GetPrimaryProblem() *gomock.Call

GetPrimaryProblem indicates an expected call of GetPrimaryProblem.

func (*MockIssueMockRecorder) GetProblemID

func (mr *MockIssueMockRecorder) GetProblemID() *gomock.Call

GetProblemID indicates an expected call of GetProblemID.

func (*MockIssueMockRecorder) GetProblems

func (mr *MockIssueMockRecorder) GetProblems() *gomock.Call

GetProblems indicates an expected call of GetProblems.

func (*MockIssueMockRecorder) GetReachability

func (mr *MockIssueMockRecorder) GetReachability() *gomock.Call

GetReachability indicates an expected call of GetReachability.

func (*MockIssueMockRecorder) GetRiskScore

func (mr *MockIssueMockRecorder) GetRiskScore() *gomock.Call

GetRiskScore indicates an expected call of GetRiskScore.

func (*MockIssueMockRecorder) GetSeverity

func (mr *MockIssueMockRecorder) GetSeverity() *gomock.Call

GetSeverity indicates an expected call of GetSeverity.

func (*MockIssueMockRecorder) GetSourceLocations

func (mr *MockIssueMockRecorder) GetSourceLocations() *gomock.Call

GetSourceLocations indicates an expected call of GetSourceLocations.

func (*MockIssueMockRecorder) GetTitle

func (mr *MockIssueMockRecorder) GetTitle() *gomock.Call

GetTitle indicates an expected call of GetTitle.

type MockTestClient

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

MockTestClient is a mock of TestClient interface.

func NewMockTestClient

func NewMockTestClient(ctrl *gomock.Controller) *MockTestClient

NewMockTestClient creates a new mock instance.

func (*MockTestClient) EXPECT

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

func (*MockTestClient) StartTest

StartTest mocks base method.

type MockTestClientMockRecorder

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

MockTestClientMockRecorder is the mock recorder for MockTestClient.

func (*MockTestClientMockRecorder) StartTest

func (mr *MockTestClientMockRecorder) StartTest(ctx, params interface{}) *gomock.Call

StartTest indicates an expected call of StartTest.

type MockTestHandle

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

MockTestHandle is a mock of TestHandle interface.

func NewMockTestHandle

func NewMockTestHandle(ctrl *gomock.Controller) *MockTestHandle

NewMockTestHandle creates a new mock instance.

func (*MockTestHandle) Done

func (m *MockTestHandle) Done() <-chan struct{}

Done mocks base method.

func (*MockTestHandle) EXPECT

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

func (*MockTestHandle) Result

func (m *MockTestHandle) Result() testapi.TestResult

Result mocks base method.

func (*MockTestHandle) Wait

func (m *MockTestHandle) Wait(ctx context.Context) error

Wait mocks base method.

type MockTestHandleMockRecorder

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

MockTestHandleMockRecorder is the mock recorder for MockTestHandle.

func (*MockTestHandleMockRecorder) Done

Done indicates an expected call of Done.

func (*MockTestHandleMockRecorder) Result

func (mr *MockTestHandleMockRecorder) Result() *gomock.Call

Result indicates an expected call of Result.

func (*MockTestHandleMockRecorder) Wait

func (mr *MockTestHandleMockRecorder) Wait(ctx interface{}) *gomock.Call

Wait indicates an expected call of Wait.

type MockTestResult

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

MockTestResult is a mock of TestResult interface.

func NewMockTestResult

func NewMockTestResult(ctrl *gomock.Controller) *MockTestResult

NewMockTestResult creates a new mock instance.

func (*MockTestResult) EXPECT

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

func (*MockTestResult) Findings

func (m *MockTestResult) Findings(ctx context.Context) ([]testapi.FindingData, bool, error)

Findings mocks base method.

func (*MockTestResult) Get

func (m *MockTestResult) Get(key testapi.TestResultKeys) interface{}

Get mocks base method.

func (*MockTestResult) GetBreachedPolicies

func (m *MockTestResult) GetBreachedPolicies() *testapi.PolicyRefSet

GetBreachedPolicies mocks base method.

func (*MockTestResult) GetCreatedAt

func (m *MockTestResult) GetCreatedAt() *time.Time

GetCreatedAt mocks base method.

func (*MockTestResult) GetEffectiveSummary

func (m *MockTestResult) GetEffectiveSummary() *testapi.FindingSummary

GetEffectiveSummary mocks base method.

func (*MockTestResult) GetErrors

func (m *MockTestResult) GetErrors() *[]testapi.IoSnykApiCommonError

GetErrors mocks base method.

func (*MockTestResult) GetExecutionState

func (m *MockTestResult) GetExecutionState() testapi.TestExecutionStates

GetExecutionState mocks base method.

func (*MockTestResult) GetMetadata

func (m *MockTestResult) GetMetadata() map[string]interface{}

GetMetadata mocks base method.

func (*MockTestResult) GetMetadataValue

func (m *MockTestResult) GetMetadataValue(key string) interface{}

GetMetadataValue mocks base method.

func (*MockTestResult) GetOutcomeReason

func (m *MockTestResult) GetOutcomeReason() *testapi.TestOutcomeReason

GetOutcomeReason mocks base method.

func (*MockTestResult) GetPassFail

func (m *MockTestResult) GetPassFail() *testapi.PassFail

GetPassFail mocks base method.

func (*MockTestResult) GetRawSummary

func (m *MockTestResult) GetRawSummary() *testapi.FindingSummary

GetRawSummary mocks base method.

func (*MockTestResult) GetSubjectLocators

func (m *MockTestResult) GetSubjectLocators() *[]testapi.TestSubjectLocator

GetSubjectLocators mocks base method.

func (*MockTestResult) GetTestConfiguration

func (m *MockTestResult) GetTestConfiguration() *testapi.TestConfiguration

GetTestConfiguration mocks base method.

func (*MockTestResult) GetTestFacts

func (m *MockTestResult) GetTestFacts() *[]testapi.TestFact

GetTestFacts mocks base method.

func (*MockTestResult) GetTestID

func (m *MockTestResult) GetTestID() *uuid.UUID

GetTestID mocks base method.

func (*MockTestResult) GetTestResources

func (m *MockTestResult) GetTestResources() *[]testapi.TestResource

GetTestResources mocks base method.

func (*MockTestResult) GetTestSubject

func (m *MockTestResult) GetTestSubject() *testapi.TestSubject

GetTestSubject mocks base method.

func (*MockTestResult) GetWarnings

func (m *MockTestResult) GetWarnings() *[]testapi.IoSnykApiCommonError

GetWarnings mocks base method.

func (*MockTestResult) SetMetadata

func (m *MockTestResult) SetMetadata(key string, value interface{})

SetMetadata mocks base method.

type MockTestResultMockRecorder

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

MockTestResultMockRecorder is the mock recorder for MockTestResult.

func (*MockTestResultMockRecorder) Findings

func (mr *MockTestResultMockRecorder) Findings(ctx interface{}) *gomock.Call

Findings indicates an expected call of Findings.

func (*MockTestResultMockRecorder) Get

func (mr *MockTestResultMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockTestResultMockRecorder) GetBreachedPolicies

func (mr *MockTestResultMockRecorder) GetBreachedPolicies() *gomock.Call

GetBreachedPolicies indicates an expected call of GetBreachedPolicies.

func (*MockTestResultMockRecorder) GetCreatedAt

func (mr *MockTestResultMockRecorder) GetCreatedAt() *gomock.Call

GetCreatedAt indicates an expected call of GetCreatedAt.

func (*MockTestResultMockRecorder) GetEffectiveSummary

func (mr *MockTestResultMockRecorder) GetEffectiveSummary() *gomock.Call

GetEffectiveSummary indicates an expected call of GetEffectiveSummary.

func (*MockTestResultMockRecorder) GetErrors

func (mr *MockTestResultMockRecorder) GetErrors() *gomock.Call

GetErrors indicates an expected call of GetErrors.

func (*MockTestResultMockRecorder) GetExecutionState

func (mr *MockTestResultMockRecorder) GetExecutionState() *gomock.Call

GetExecutionState indicates an expected call of GetExecutionState.

func (*MockTestResultMockRecorder) GetMetadata

func (mr *MockTestResultMockRecorder) GetMetadata() *gomock.Call

GetMetadata indicates an expected call of GetMetadata.

func (*MockTestResultMockRecorder) GetMetadataValue

func (mr *MockTestResultMockRecorder) GetMetadataValue(key interface{}) *gomock.Call

GetMetadataValue indicates an expected call of GetMetadataValue.

func (*MockTestResultMockRecorder) GetOutcomeReason

func (mr *MockTestResultMockRecorder) GetOutcomeReason() *gomock.Call

GetOutcomeReason indicates an expected call of GetOutcomeReason.

func (*MockTestResultMockRecorder) GetPassFail

func (mr *MockTestResultMockRecorder) GetPassFail() *gomock.Call

GetPassFail indicates an expected call of GetPassFail.

func (*MockTestResultMockRecorder) GetRawSummary

func (mr *MockTestResultMockRecorder) GetRawSummary() *gomock.Call

GetRawSummary indicates an expected call of GetRawSummary.

func (*MockTestResultMockRecorder) GetSubjectLocators

func (mr *MockTestResultMockRecorder) GetSubjectLocators() *gomock.Call

GetSubjectLocators indicates an expected call of GetSubjectLocators.

func (*MockTestResultMockRecorder) GetTestConfiguration

func (mr *MockTestResultMockRecorder) GetTestConfiguration() *gomock.Call

GetTestConfiguration indicates an expected call of GetTestConfiguration.

func (*MockTestResultMockRecorder) GetTestFacts

func (mr *MockTestResultMockRecorder) GetTestFacts() *gomock.Call

GetTestFacts indicates an expected call of GetTestFacts.

func (*MockTestResultMockRecorder) GetTestID

func (mr *MockTestResultMockRecorder) GetTestID() *gomock.Call

GetTestID indicates an expected call of GetTestID.

func (*MockTestResultMockRecorder) GetTestResources

func (mr *MockTestResultMockRecorder) GetTestResources() *gomock.Call

GetTestResources indicates an expected call of GetTestResources.

func (*MockTestResultMockRecorder) GetTestSubject

func (mr *MockTestResultMockRecorder) GetTestSubject() *gomock.Call

GetTestSubject indicates an expected call of GetTestSubject.

func (*MockTestResultMockRecorder) GetWarnings

func (mr *MockTestResultMockRecorder) GetWarnings() *gomock.Call

GetWarnings indicates an expected call of GetWarnings.

func (*MockTestResultMockRecorder) SetMetadata

func (mr *MockTestResultMockRecorder) SetMetadata(key, value interface{}) *gomock.Call

SetMetadata indicates an expected call of SetMetadata.

type MockissueGrouper

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

MockissueGrouper is a mock of issueGrouper interface.

func NewMockissueGrouper

func NewMockissueGrouper(ctrl *gomock.Controller) *MockissueGrouper

NewMockissueGrouper creates a new mock instance.

func (*MockissueGrouper) EXPECT

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

type MockissueGrouperMockRecorder

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

MockissueGrouperMockRecorder is the mock recorder for MockissueGrouper.

Jump to

Keyboard shortcuts

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