Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockIssue
- func (m *MockIssue) EXPECT() *MockIssueMockRecorder
- func (m *MockIssue) GetCVEs() []string
- func (m *MockIssue) GetCWEs() []string
- func (m *MockIssue) GetData(key string) (interface{}, bool)
- func (m *MockIssue) GetDescription() string
- func (m *MockIssue) GetEffectiveSeverity() string
- func (m *MockIssue) GetFindingType() testapi.FindingType
- func (m *MockIssue) GetFindings() []*testapi.FindingData
- func (m *MockIssue) GetID() string
- func (m *MockIssue) GetIgnoreDetails() testapi.IssueIgnoreDetails
- func (m *MockIssue) GetPrimaryProblem() *testapi.Problem
- func (m *MockIssue) GetProblemID() string
- func (m *MockIssue) GetProblems() []*testapi.Problem
- func (m *MockIssue) GetReachability() *testapi.ReachabilityEvidence
- func (m *MockIssue) GetRiskScore() uint16
- func (m *MockIssue) GetSeverity() string
- func (m *MockIssue) GetSourceLocations() []testapi.SourceLocation
- func (m *MockIssue) GetTitle() string
- type MockIssueMockRecorder
- func (mr *MockIssueMockRecorder) GetCVEs() *gomock.Call
- func (mr *MockIssueMockRecorder) GetCWEs() *gomock.Call
- func (mr *MockIssueMockRecorder) GetData(key interface{}) *gomock.Call
- func (mr *MockIssueMockRecorder) GetDescription() *gomock.Call
- func (mr *MockIssueMockRecorder) GetEffectiveSeverity() *gomock.Call
- func (mr *MockIssueMockRecorder) GetFindingType() *gomock.Call
- func (mr *MockIssueMockRecorder) GetFindings() *gomock.Call
- func (mr *MockIssueMockRecorder) GetID() *gomock.Call
- func (mr *MockIssueMockRecorder) GetIgnoreDetails() *gomock.Call
- func (mr *MockIssueMockRecorder) GetPrimaryProblem() *gomock.Call
- func (mr *MockIssueMockRecorder) GetProblemID() *gomock.Call
- func (mr *MockIssueMockRecorder) GetProblems() *gomock.Call
- func (mr *MockIssueMockRecorder) GetReachability() *gomock.Call
- func (mr *MockIssueMockRecorder) GetRiskScore() *gomock.Call
- func (mr *MockIssueMockRecorder) GetSeverity() *gomock.Call
- func (mr *MockIssueMockRecorder) GetSourceLocations() *gomock.Call
- func (mr *MockIssueMockRecorder) GetTitle() *gomock.Call
- type MockTestClient
- type MockTestClientMockRecorder
- type MockTestHandle
- type MockTestHandleMockRecorder
- type MockTestResult
- func (m *MockTestResult) EXPECT() *MockTestResultMockRecorder
- func (m *MockTestResult) Findings(ctx context.Context) ([]testapi.FindingData, bool, error)
- func (m *MockTestResult) Get(key testapi.TestResultKeys) interface{}
- func (m *MockTestResult) GetBreachedPolicies() *testapi.PolicyRefSet
- func (m *MockTestResult) GetCreatedAt() *time.Time
- func (m *MockTestResult) GetEffectiveSummary() *testapi.FindingSummary
- func (m *MockTestResult) GetErrors() *[]testapi.IoSnykApiCommonError
- func (m *MockTestResult) GetExecutionState() testapi.TestExecutionStates
- func (m *MockTestResult) GetMetadata() map[string]interface{}
- func (m *MockTestResult) GetMetadataValue(key string) interface{}
- func (m *MockTestResult) GetOutcomeReason() *testapi.TestOutcomeReason
- func (m *MockTestResult) GetPassFail() *testapi.PassFail
- func (m *MockTestResult) GetRawSummary() *testapi.FindingSummary
- func (m *MockTestResult) GetSubjectLocators() *[]testapi.TestSubjectLocator
- func (m *MockTestResult) GetTestConfiguration() *testapi.TestConfiguration
- func (m *MockTestResult) GetTestFacts() *[]testapi.TestFact
- func (m *MockTestResult) GetTestID() *uuid.UUID
- func (m *MockTestResult) GetTestResources() *[]testapi.TestResource
- func (m *MockTestResult) GetTestSubject() *testapi.TestSubject
- func (m *MockTestResult) GetWarnings() *[]testapi.IoSnykApiCommonError
- func (m *MockTestResult) SetMetadata(key string, value interface{})
- type MockTestResultMockRecorder
- func (mr *MockTestResultMockRecorder) Findings(ctx interface{}) *gomock.Call
- func (mr *MockTestResultMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockTestResultMockRecorder) GetBreachedPolicies() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetCreatedAt() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetEffectiveSummary() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetErrors() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetExecutionState() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetMetadata() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetMetadataValue(key interface{}) *gomock.Call
- func (mr *MockTestResultMockRecorder) GetOutcomeReason() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetPassFail() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetRawSummary() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetSubjectLocators() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetTestConfiguration() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetTestFacts() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetTestID() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetTestResources() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetTestSubject() *gomock.Call
- func (mr *MockTestResultMockRecorder) GetWarnings() *gomock.Call
- func (mr *MockTestResultMockRecorder) SetMetadata(key, value interface{}) *gomock.Call
- type MockissueGrouper
- type MockissueGrouperMockRecorder
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) GetDescription ¶
GetDescription mocks base method.
func (*MockIssue) GetEffectiveSeverity ¶
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) GetIgnoreDetails ¶
func (m *MockIssue) GetIgnoreDetails() testapi.IssueIgnoreDetails
GetIgnoreDetails mocks base method.
func (*MockIssue) GetPrimaryProblem ¶
GetPrimaryProblem mocks base method.
func (*MockIssue) GetProblemID ¶
GetProblemID mocks base method.
func (*MockIssue) GetProblems ¶
GetProblems mocks base method.
func (*MockIssue) GetReachability ¶
func (m *MockIssue) GetReachability() *testapi.ReachabilityEvidence
GetReachability mocks base method.
func (*MockIssue) GetRiskScore ¶
GetRiskScore mocks base method.
func (*MockIssue) GetSeverity ¶
GetSeverity mocks base method.
func (*MockIssue) GetSourceLocations ¶
func (m *MockIssue) GetSourceLocations() []testapi.SourceLocation
GetSourceLocations 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 ¶
func (m *MockTestClient) EXPECT() *MockTestClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTestClient) StartTest ¶
func (m *MockTestClient) StartTest(ctx context.Context, params testapi.StartTestParams) (testapi.TestHandle, error)
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 ¶
func (m *MockTestHandle) EXPECT() *MockTestHandleMockRecorder
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.
type MockTestHandleMockRecorder ¶
type MockTestHandleMockRecorder struct {
// contains filtered or unexported fields
}
MockTestHandleMockRecorder is the mock recorder for MockTestHandle.
func (*MockTestHandleMockRecorder) Done ¶
func (mr *MockTestHandleMockRecorder) Done() *gomock.Call
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 ¶
func (m *MockTestResult) EXPECT() *MockTestResultMockRecorder
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 ¶
func (m *MockissueGrouper) EXPECT() *MockissueGrouperMockRecorder
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.