Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

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 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

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

func (*MockApiClient) GetDefaultOrgId

func (m *MockApiClient) GetDefaultOrgId(ctx context.Context) (string, error)

GetDefaultOrgId mocks base method.

func (*MockApiClient) GetFeatureFlag

func (m *MockApiClient) GetFeatureFlag(ctx context.Context, flagname, origId string) (bool, error)

GetFeatureFlag mocks base method.

func (*MockApiClient) GetOrgIdFromSlug

func (m *MockApiClient) GetOrgIdFromSlug(ctx context.Context, slugName string) (string, error)

GetOrgIdFromSlug mocks base method.

func (*MockApiClient) GetOrgSettings

func (m *MockApiClient) GetOrgSettings(ctx context.Context, orgId string) (*contract.OrgSettingsResponse, error)

GetOrgSettings mocks base method.

func (*MockApiClient) GetOrganizations

func (m *MockApiClient) GetOrganizations(ctx context.Context, limit int) (*contract.OrganizationsResponse, error)

GetOrganizations mocks base method.

func (*MockApiClient) GetSelf

GetSelf mocks base method.

func (*MockApiClient) GetSlugFromOrgId

func (m *MockApiClient) GetSlugFromOrgId(ctx context.Context, orgID string) (string, error)

GetSlugFromOrgId mocks base method.

func (*MockApiClient) GetUserMe

func (m *MockApiClient) GetUserMe(ctx context.Context) (string, error)

GetUserMe mocks base method.

func (*MockApiClient) Init

func (m *MockApiClient) Init(url string, client *http.Client)

Init 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(ctx interface{}) *gomock.Call

GetDefaultOrgId indicates an expected call of GetDefaultOrgId.

func (*MockApiClientMockRecorder) GetFeatureFlag

func (mr *MockApiClientMockRecorder) GetFeatureFlag(ctx, flagname, origId interface{}) *gomock.Call

GetFeatureFlag indicates an expected call of GetFeatureFlag.

func (*MockApiClientMockRecorder) GetOrgIdFromSlug

func (mr *MockApiClientMockRecorder) GetOrgIdFromSlug(ctx, slugName interface{}) *gomock.Call

GetOrgIdFromSlug indicates an expected call of GetOrgIdFromSlug.

func (*MockApiClientMockRecorder) GetOrgSettings

func (mr *MockApiClientMockRecorder) GetOrgSettings(ctx, orgId interface{}) *gomock.Call

GetOrgSettings indicates an expected call of GetOrgSettings.

func (*MockApiClientMockRecorder) GetOrganizations

func (mr *MockApiClientMockRecorder) GetOrganizations(ctx, limit interface{}) *gomock.Call

GetOrganizations indicates an expected call of GetOrganizations.

func (*MockApiClientMockRecorder) GetSelf

func (mr *MockApiClientMockRecorder) GetSelf(ctx interface{}) *gomock.Call

GetSelf indicates an expected call of GetSelf.

func (*MockApiClientMockRecorder) GetSlugFromOrgId

func (mr *MockApiClientMockRecorder) GetSlugFromOrgId(ctx, orgID interface{}) *gomock.Call

GetSlugFromOrgId indicates an expected call of GetSlugFromOrgId.

func (*MockApiClientMockRecorder) GetUserMe

func (mr *MockApiClientMockRecorder) GetUserMe(ctx interface{}) *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

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.

func (*MockOutputDestination) WriteFile

func (m *MockOutputDestination) WriteFile(filename string, data []byte, perm fs.FileMode) error

WriteFile mocks base method.

type MockOutputDestinationMockRecorder

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

MockOutputDestinationMockRecorder is the mock recorder for MockOutputDestination.

func (*MockOutputDestinationMockRecorder) GetWriter

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

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.

Jump to

Keyboard shortcuts

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