Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockApiClient
- func (m *MockApiClient) EXPECT() *MockApiClientMockRecorder
- func (m *MockApiClient) GetDefaultOrgId() (string, error)
- func (m *MockApiClient) GetFeatureFlag(flagname, origId string) (bool, error)
- func (m *MockApiClient) GetOrgIdFromSlug(slugName string) (string, error)
- func (m *MockApiClient) GetSastSettings(orgId string) (contract.SastResponse, error)
- func (m *MockApiClient) GetSelf() (contract.SelfResponse, error)
- func (m *MockApiClient) GetSlugFromOrgId(orgID string) (string, error)
- func (m *MockApiClient) GetUserMe() (string, error)
- func (m *MockApiClient) Init(url string, client *http.Client)
- type MockApiClientMockRecorder
- func (mr *MockApiClientMockRecorder) GetDefaultOrgId() *gomock.Call
- func (mr *MockApiClientMockRecorder) GetFeatureFlag(flagname, origId interface{}) *gomock.Call
- func (mr *MockApiClientMockRecorder) GetOrgIdFromSlug(slugName interface{}) *gomock.Call
- func (mr *MockApiClientMockRecorder) GetSastSettings(orgId interface{}) *gomock.Call
- func (mr *MockApiClientMockRecorder) GetSelf() *gomock.Call
- func (mr *MockApiClientMockRecorder) GetSlugFromOrgId(orgID interface{}) *gomock.Call
- func (mr *MockApiClientMockRecorder) GetUserMe() *gomock.Call
- func (mr *MockApiClientMockRecorder) Init(url, client interface{}) *gomock.Call
- type MockOutputDestination
- func (m *MockOutputDestination) EXPECT() *MockOutputDestinationMockRecorder
- func (m *MockOutputDestination) GetWriter() io.Writer
- func (m *MockOutputDestination) Println(a ...any) (int, error)
- func (m *MockOutputDestination) Remove(name string) error
- func (m *MockOutputDestination) WriteFile(filename string, data []byte, perm fs.FileMode) error
- type MockOutputDestinationMockRecorder
- func (mr *MockOutputDestinationMockRecorder) GetWriter() *gomock.Call
- func (mr *MockOutputDestinationMockRecorder) Println(a ...interface{}) *gomock.Call
- func (mr *MockOutputDestinationMockRecorder) Remove(name interface{}) *gomock.Call
- func (mr *MockOutputDestinationMockRecorder) WriteFile(filename, data, perm interface{}) *gomock.Call
- type MockSnykOSUtil
- type MockSnykOSUtilMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockApiClient ¶
type MockApiClient struct {
// contains filtered or unexported fields
}
MockApiClient is a mock of ApiClient interface.
func NewMockApiClient ¶
func NewMockApiClient(ctrl *gomock.Controller) *MockApiClient
NewMockApiClient creates a new mock instance.
func (*MockApiClient) EXPECT ¶
func (m *MockApiClient) EXPECT() *MockApiClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockApiClient) GetDefaultOrgId ¶
func (m *MockApiClient) GetDefaultOrgId() (string, error)
GetDefaultOrgId mocks base method.
func (*MockApiClient) GetFeatureFlag ¶
func (m *MockApiClient) GetFeatureFlag(flagname, origId string) (bool, error)
GetFeatureFlag mocks base method.
func (*MockApiClient) GetOrgIdFromSlug ¶
func (m *MockApiClient) GetOrgIdFromSlug(slugName string) (string, error)
GetOrgIdFromSlug mocks base method.
func (*MockApiClient) GetSastSettings ¶
func (m *MockApiClient) GetSastSettings(orgId string) (contract.SastResponse, error)
GetSastSettings mocks base method.
func (*MockApiClient) GetSelf ¶
func (m *MockApiClient) GetSelf() (contract.SelfResponse, error)
GetSelf mocks base method.
func (*MockApiClient) GetSlugFromOrgId ¶
func (m *MockApiClient) GetSlugFromOrgId(orgID string) (string, error)
GetSlugFromOrgId mocks base method.
func (*MockApiClient) GetUserMe ¶
func (m *MockApiClient) GetUserMe() (string, error)
GetUserMe mocks base method.
type MockApiClientMockRecorder ¶
type MockApiClientMockRecorder struct {
// contains filtered or unexported fields
}
MockApiClientMockRecorder is the mock recorder for MockApiClient.
func (*MockApiClientMockRecorder) GetDefaultOrgId ¶
func (mr *MockApiClientMockRecorder) GetDefaultOrgId() *gomock.Call
GetDefaultOrgId indicates an expected call of GetDefaultOrgId.
func (*MockApiClientMockRecorder) GetFeatureFlag ¶
func (mr *MockApiClientMockRecorder) GetFeatureFlag(flagname, origId interface{}) *gomock.Call
GetFeatureFlag indicates an expected call of GetFeatureFlag.
func (*MockApiClientMockRecorder) GetOrgIdFromSlug ¶
func (mr *MockApiClientMockRecorder) GetOrgIdFromSlug(slugName interface{}) *gomock.Call
GetOrgIdFromSlug indicates an expected call of GetOrgIdFromSlug.
func (*MockApiClientMockRecorder) GetSastSettings ¶
func (mr *MockApiClientMockRecorder) GetSastSettings(orgId interface{}) *gomock.Call
GetSastSettings indicates an expected call of GetSastSettings.
func (*MockApiClientMockRecorder) GetSelf ¶
func (mr *MockApiClientMockRecorder) GetSelf() *gomock.Call
GetSelf indicates an expected call of GetSelf.
func (*MockApiClientMockRecorder) GetSlugFromOrgId ¶
func (mr *MockApiClientMockRecorder) GetSlugFromOrgId(orgID interface{}) *gomock.Call
GetSlugFromOrgId indicates an expected call of GetSlugFromOrgId.
func (*MockApiClientMockRecorder) GetUserMe ¶
func (mr *MockApiClientMockRecorder) GetUserMe() *gomock.Call
GetUserMe indicates an expected call of GetUserMe.
func (*MockApiClientMockRecorder) Init ¶
func (mr *MockApiClientMockRecorder) Init(url, client interface{}) *gomock.Call
Init indicates an expected call of Init.
type MockOutputDestination ¶
type MockOutputDestination struct {
// contains filtered or unexported fields
}
MockOutputDestination is a mock of OutputDestination interface.
func NewMockOutputDestination ¶
func NewMockOutputDestination(ctrl *gomock.Controller) *MockOutputDestination
NewMockOutputDestination creates a new mock instance.
func (*MockOutputDestination) EXPECT ¶
func (m *MockOutputDestination) EXPECT() *MockOutputDestinationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOutputDestination) GetWriter ¶
func (m *MockOutputDestination) GetWriter() io.Writer
GetWriter mocks base method.
func (*MockOutputDestination) Println ¶
func (m *MockOutputDestination) Println(a ...any) (int, error)
Println mocks base method.
func (*MockOutputDestination) Remove ¶
func (m *MockOutputDestination) Remove(name string) error
Remove mocks base method.
type MockOutputDestinationMockRecorder ¶
type MockOutputDestinationMockRecorder struct {
// contains filtered or unexported fields
}
MockOutputDestinationMockRecorder is the mock recorder for MockOutputDestination.
func (*MockOutputDestinationMockRecorder) GetWriter ¶
func (mr *MockOutputDestinationMockRecorder) GetWriter() *gomock.Call
GetWriter indicates an expected call of GetWriter.
func (*MockOutputDestinationMockRecorder) Println ¶
func (mr *MockOutputDestinationMockRecorder) Println(a ...interface{}) *gomock.Call
Println indicates an expected call of Println.
func (*MockOutputDestinationMockRecorder) Remove ¶
func (mr *MockOutputDestinationMockRecorder) Remove(name interface{}) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockOutputDestinationMockRecorder) WriteFile ¶
func (mr *MockOutputDestinationMockRecorder) WriteFile(filename, data, perm interface{}) *gomock.Call
WriteFile indicates an expected call of WriteFile.
type MockSnykOSUtil ¶
type MockSnykOSUtil struct {
// contains filtered or unexported fields
}
MockSnykOSUtil is a mock of SnykOSUtil interface.
func NewMockSnykOSUtil ¶
func NewMockSnykOSUtil(ctrl *gomock.Controller) *MockSnykOSUtil
NewMockSnykOSUtil creates a new mock instance.
func (*MockSnykOSUtil) EXPECT ¶
func (m *MockSnykOSUtil) EXPECT() *MockSnykOSUtilMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSnykOSUtil) MkdirAll ¶
func (m *MockSnykOSUtil) MkdirAll(path string, perm os.FileMode) error
MkdirAll mocks base method.
func (*MockSnykOSUtil) Stat ¶
func (m *MockSnykOSUtil) Stat(name string) (os.FileInfo, error)
Stat mocks base method.
func (*MockSnykOSUtil) TempDir ¶
func (m *MockSnykOSUtil) TempDir() string
TempDir mocks base method.
func (*MockSnykOSUtil) UserCacheDir ¶
func (m *MockSnykOSUtil) UserCacheDir() (string, error)
UserCacheDir mocks base method.
type MockSnykOSUtilMockRecorder ¶
type MockSnykOSUtilMockRecorder struct {
// contains filtered or unexported fields
}
MockSnykOSUtilMockRecorder is the mock recorder for MockSnykOSUtil.
func (*MockSnykOSUtilMockRecorder) MkdirAll ¶
func (mr *MockSnykOSUtilMockRecorder) MkdirAll(path, perm interface{}) *gomock.Call
MkdirAll indicates an expected call of MkdirAll.
func (*MockSnykOSUtilMockRecorder) Stat ¶
func (mr *MockSnykOSUtilMockRecorder) Stat(name interface{}) *gomock.Call
Stat indicates an expected call of Stat.
func (*MockSnykOSUtilMockRecorder) TempDir ¶
func (mr *MockSnykOSUtilMockRecorder) TempDir() *gomock.Call
TempDir indicates an expected call of TempDir.
func (*MockSnykOSUtilMockRecorder) UserCacheDir ¶
func (mr *MockSnykOSUtilMockRecorder) UserCacheDir() *gomock.Call
UserCacheDir indicates an expected call of UserCacheDir.