mocks

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockComponentService

type MockComponentService struct {
	mock.Mock
}

MockComponentService is an autogenerated mock type for the ComponentService type

func NewMockComponentService

func NewMockComponentService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockComponentService

NewMockComponentService creates a new instance of MockComponentService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockComponentService) CanRedo

func (_m *MockComponentService) CanRedo() bool

CanRedo provides a mock function with given fields:

func (*MockComponentService) CanUndo

func (_m *MockComponentService) CanUndo() bool

CanUndo provides a mock function with given fields:

func (*MockComponentService) EXPECT

func (*MockComponentService) FilterComponents

func (_m *MockComponentService) FilterComponents(dto []entities.ComponentFilterDTO) error

FilterComponents provides a mock function with given fields: dto

func (*MockComponentService) GetComponentByPath

func (_m *MockComponentService) GetComponentByPath(filePath string) (entities.ComponentDTO, error)

GetComponentByPath provides a mock function with given fields: filePath

func (*MockComponentService) GetDeclaredComponents

func (_m *MockComponentService) GetDeclaredComponents() ([]entities.DeclaredComponent, error)

GetDeclaredComponents provides a mock function with given fields:

func (*MockComponentService) Redo

func (_m *MockComponentService) Redo() error

Redo provides a mock function with given fields:

func (*MockComponentService) SearchComponents added in v0.9.0

SearchComponents provides a mock function with given fields: request

func (*MockComponentService) Undo

func (_m *MockComponentService) Undo() error

Undo provides a mock function with given fields:

type MockComponentService_CanRedo_Call

type MockComponentService_CanRedo_Call struct {
	*mock.Call
}

MockComponentService_CanRedo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanRedo'

func (*MockComponentService_CanRedo_Call) Return

func (*MockComponentService_CanRedo_Call) Run

func (*MockComponentService_CanRedo_Call) RunAndReturn

type MockComponentService_CanUndo_Call

type MockComponentService_CanUndo_Call struct {
	*mock.Call
}

MockComponentService_CanUndo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanUndo'

func (*MockComponentService_CanUndo_Call) Return

func (*MockComponentService_CanUndo_Call) Run

func (*MockComponentService_CanUndo_Call) RunAndReturn

type MockComponentService_Expecter

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

func (*MockComponentService_Expecter) CanRedo

CanRedo is a helper method to define mock.On call

func (*MockComponentService_Expecter) CanUndo

CanUndo is a helper method to define mock.On call

func (*MockComponentService_Expecter) FilterComponents

func (_e *MockComponentService_Expecter) FilterComponents(dto interface{}) *MockComponentService_FilterComponents_Call

FilterComponents is a helper method to define mock.On call

  • dto []entities.ComponentFilterDTO

func (*MockComponentService_Expecter) GetComponentByPath

func (_e *MockComponentService_Expecter) GetComponentByPath(filePath interface{}) *MockComponentService_GetComponentByPath_Call

GetComponentByPath is a helper method to define mock.On call

  • filePath string

func (*MockComponentService_Expecter) GetDeclaredComponents

GetDeclaredComponents is a helper method to define mock.On call

func (*MockComponentService_Expecter) Redo

Redo is a helper method to define mock.On call

func (*MockComponentService_Expecter) SearchComponents added in v0.9.0

func (_e *MockComponentService_Expecter) SearchComponents(request interface{}) *MockComponentService_SearchComponents_Call

SearchComponents is a helper method to define mock.On call

  • request entities.ComponentSearchRequest

func (*MockComponentService_Expecter) Undo

Undo is a helper method to define mock.On call

type MockComponentService_FilterComponents_Call

type MockComponentService_FilterComponents_Call struct {
	*mock.Call
}

MockComponentService_FilterComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterComponents'

func (*MockComponentService_FilterComponents_Call) Return

func (*MockComponentService_FilterComponents_Call) Run

func (*MockComponentService_FilterComponents_Call) RunAndReturn

type MockComponentService_GetComponentByPath_Call

type MockComponentService_GetComponentByPath_Call struct {
	*mock.Call
}

MockComponentService_GetComponentByPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponentByPath'

func (*MockComponentService_GetComponentByPath_Call) Return

func (*MockComponentService_GetComponentByPath_Call) Run

func (*MockComponentService_GetComponentByPath_Call) RunAndReturn

type MockComponentService_GetDeclaredComponents_Call

type MockComponentService_GetDeclaredComponents_Call struct {
	*mock.Call
}

MockComponentService_GetDeclaredComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDeclaredComponents'

func (*MockComponentService_GetDeclaredComponents_Call) Return

func (*MockComponentService_GetDeclaredComponents_Call) Run

func (*MockComponentService_GetDeclaredComponents_Call) RunAndReturn

type MockComponentService_Redo_Call

type MockComponentService_Redo_Call struct {
	*mock.Call
}

MockComponentService_Redo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Redo'

func (*MockComponentService_Redo_Call) Return

func (*MockComponentService_Redo_Call) Run

func (*MockComponentService_Redo_Call) RunAndReturn

type MockComponentService_SearchComponents_Call added in v0.9.0

type MockComponentService_SearchComponents_Call struct {
	*mock.Call
}

MockComponentService_SearchComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchComponents'

func (*MockComponentService_SearchComponents_Call) Return added in v0.9.0

func (*MockComponentService_SearchComponents_Call) Run added in v0.9.0

func (*MockComponentService_SearchComponents_Call) RunAndReturn added in v0.9.0

type MockComponentService_Undo_Call

type MockComponentService_Undo_Call struct {
	*mock.Call
}

MockComponentService_Undo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Undo'

func (*MockComponentService_Undo_Call) Return

func (*MockComponentService_Undo_Call) Run

func (*MockComponentService_Undo_Call) RunAndReturn

type MockFileService

type MockFileService struct {
	mock.Mock
}

MockFileService is an autogenerated mock type for the FileService type

func NewMockFileService

func NewMockFileService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFileService

NewMockFileService creates a new instance of MockFileService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockFileService) EXPECT

func (*MockFileService) GetLocalFile

func (_m *MockFileService) GetLocalFile(path string) (entities.FileDTO, error)

GetLocalFile provides a mock function with given fields: path

func (*MockFileService) GetRemoteFile

func (_m *MockFileService) GetRemoteFile(path string) (entities.FileDTO, error)

GetRemoteFile provides a mock function with given fields: path

type MockFileService_Expecter

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

func (*MockFileService_Expecter) GetLocalFile

func (_e *MockFileService_Expecter) GetLocalFile(path interface{}) *MockFileService_GetLocalFile_Call

GetLocalFile is a helper method to define mock.On call

  • path string

func (*MockFileService_Expecter) GetRemoteFile

func (_e *MockFileService_Expecter) GetRemoteFile(path interface{}) *MockFileService_GetRemoteFile_Call

GetRemoteFile is a helper method to define mock.On call

  • path string

type MockFileService_GetLocalFile_Call

type MockFileService_GetLocalFile_Call struct {
	*mock.Call
}

MockFileService_GetLocalFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLocalFile'

func (*MockFileService_GetLocalFile_Call) Return

func (*MockFileService_GetLocalFile_Call) Run

func (*MockFileService_GetLocalFile_Call) RunAndReturn

type MockFileService_GetRemoteFile_Call

type MockFileService_GetRemoteFile_Call struct {
	*mock.Call
}

MockFileService_GetRemoteFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRemoteFile'

func (*MockFileService_GetRemoteFile_Call) Return

func (*MockFileService_GetRemoteFile_Call) Run

func (*MockFileService_GetRemoteFile_Call) RunAndReturn

type MockHTTPClient added in v0.9.0

type MockHTTPClient struct {
	mock.Mock
}

MockHTTPClient is an autogenerated mock type for the HTTPClient type

func NewMockHTTPClient added in v0.9.0

func NewMockHTTPClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHTTPClient

NewMockHTTPClient creates a new instance of MockHTTPClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockHTTPClient) Do added in v0.9.0

func (_m *MockHTTPClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

func (*MockHTTPClient) EXPECT added in v0.9.0

type MockHTTPClient_Do_Call added in v0.9.0

type MockHTTPClient_Do_Call struct {
	*mock.Call
}

MockHTTPClient_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'

func (*MockHTTPClient_Do_Call) Return added in v0.9.0

func (*MockHTTPClient_Do_Call) Run added in v0.9.0

func (_c *MockHTTPClient_Do_Call) Run(run func(req *http.Request)) *MockHTTPClient_Do_Call

func (*MockHTTPClient_Do_Call) RunAndReturn added in v0.9.0

func (_c *MockHTTPClient_Do_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *MockHTTPClient_Do_Call

type MockHTTPClient_Expecter added in v0.9.0

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

func (*MockHTTPClient_Expecter) Do added in v0.9.0

func (_e *MockHTTPClient_Expecter) Do(req interface{}) *MockHTTPClient_Do_Call

Do is a helper method to define mock.On call

  • req *http.Request

type MockKeyboardService

type MockKeyboardService struct {
	mock.Mock
}

MockKeyboardService is an autogenerated mock type for the KeyboardService type

func NewMockKeyboardService

func NewMockKeyboardService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockKeyboardService

NewMockKeyboardService creates a new instance of MockKeyboardService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockKeyboardService) EXPECT

func (*MockKeyboardService) GetGroupedShortcuts

func (_m *MockKeyboardService) GetGroupedShortcuts() map[entities.Group][]entities.Shortcut

GetGroupedShortcuts provides a mock function with given fields:

func (*MockKeyboardService) GetShortcuts

func (_m *MockKeyboardService) GetShortcuts() []entities.Shortcut

GetShortcuts provides a mock function with given fields:

type MockKeyboardService_Expecter

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

func (*MockKeyboardService_Expecter) GetGroupedShortcuts

GetGroupedShortcuts is a helper method to define mock.On call

func (*MockKeyboardService_Expecter) GetShortcuts

GetShortcuts is a helper method to define mock.On call

type MockKeyboardService_GetGroupedShortcuts_Call

type MockKeyboardService_GetGroupedShortcuts_Call struct {
	*mock.Call
}

MockKeyboardService_GetGroupedShortcuts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGroupedShortcuts'

func (*MockKeyboardService_GetGroupedShortcuts_Call) Return

func (*MockKeyboardService_GetGroupedShortcuts_Call) Run

func (*MockKeyboardService_GetGroupedShortcuts_Call) RunAndReturn

type MockKeyboardService_GetShortcuts_Call

type MockKeyboardService_GetShortcuts_Call struct {
	*mock.Call
}

MockKeyboardService_GetShortcuts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShortcuts'

func (*MockKeyboardService_GetShortcuts_Call) Return

func (*MockKeyboardService_GetShortcuts_Call) Run

func (*MockKeyboardService_GetShortcuts_Call) RunAndReturn

type MockLicenseService

type MockLicenseService struct {
	mock.Mock
}

MockLicenseService is an autogenerated mock type for the LicenseService type

func NewMockLicenseService

func NewMockLicenseService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLicenseService

NewMockLicenseService creates a new instance of MockLicenseService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockLicenseService) EXPECT

func (*MockLicenseService) GetAll

func (_m *MockLicenseService) GetAll() ([]entities.License, error)

GetAll provides a mock function with given fields:

func (*MockLicenseService) GetLicensesByPurl added in v0.9.0

GetLicensesByPurl provides a mock function with given fields: request

type MockLicenseService_Expecter

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

func (*MockLicenseService_Expecter) GetAll

GetAll is a helper method to define mock.On call

func (*MockLicenseService_Expecter) GetLicensesByPurl added in v0.9.0

func (_e *MockLicenseService_Expecter) GetLicensesByPurl(request interface{}) *MockLicenseService_GetLicensesByPurl_Call

GetLicensesByPurl is a helper method to define mock.On call

  • request entities.ComponentRequest

type MockLicenseService_GetAll_Call

type MockLicenseService_GetAll_Call struct {
	*mock.Call
}

MockLicenseService_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'

func (*MockLicenseService_GetAll_Call) Return

func (*MockLicenseService_GetAll_Call) Run

func (*MockLicenseService_GetAll_Call) RunAndReturn

type MockLicenseService_GetLicensesByPurl_Call added in v0.9.0

type MockLicenseService_GetLicensesByPurl_Call struct {
	*mock.Call
}

MockLicenseService_GetLicensesByPurl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLicensesByPurl'

func (*MockLicenseService_GetLicensesByPurl_Call) Return added in v0.9.0

func (*MockLicenseService_GetLicensesByPurl_Call) Run added in v0.9.0

func (*MockLicenseService_GetLicensesByPurl_Call) RunAndReturn added in v0.9.0

type MockResultService

type MockResultService struct {
	mock.Mock
}

MockResultService is an autogenerated mock type for the ResultService type

func NewMockResultService

func NewMockResultService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockResultService

NewMockResultService creates a new instance of MockResultService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockResultService) EXPECT

func (*MockResultService) GetAll

GetAll provides a mock function with given fields: dto

func (*MockResultService) GetByPath added in v0.6.5

func (_m *MockResultService) GetByPath(path string) entities.ResultDTO

GetByPath provides a mock function with given fields: path

func (*MockResultService) SetContext added in v0.6.1

func (_m *MockResultService) SetContext(ctx context.Context)

SetContext provides a mock function with given fields: ctx

type MockResultService_Expecter

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

func (*MockResultService_Expecter) GetAll

func (_e *MockResultService_Expecter) GetAll(dto interface{}) *MockResultService_GetAll_Call

GetAll is a helper method to define mock.On call

  • dto *entities.RequestResultDTO

func (*MockResultService_Expecter) GetByPath added in v0.6.5

func (_e *MockResultService_Expecter) GetByPath(path interface{}) *MockResultService_GetByPath_Call

GetByPath is a helper method to define mock.On call

  • path string

func (*MockResultService_Expecter) SetContext added in v0.6.1

func (_e *MockResultService_Expecter) SetContext(ctx interface{}) *MockResultService_SetContext_Call

SetContext is a helper method to define mock.On call

  • ctx context.Context

type MockResultService_GetAll_Call

type MockResultService_GetAll_Call struct {
	*mock.Call
}

MockResultService_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'

func (*MockResultService_GetAll_Call) Return

func (*MockResultService_GetAll_Call) Run

func (*MockResultService_GetAll_Call) RunAndReturn

type MockResultService_GetByPath_Call added in v0.6.5

type MockResultService_GetByPath_Call struct {
	*mock.Call
}

MockResultService_GetByPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByPath'

func (*MockResultService_GetByPath_Call) Return added in v0.6.5

func (*MockResultService_GetByPath_Call) Run added in v0.6.5

func (*MockResultService_GetByPath_Call) RunAndReturn added in v0.6.5

type MockResultService_SetContext_Call added in v0.6.1

type MockResultService_SetContext_Call struct {
	*mock.Call
}

MockResultService_SetContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetContext'

func (*MockResultService_SetContext_Call) Return added in v0.6.1

func (*MockResultService_SetContext_Call) Run added in v0.6.1

func (*MockResultService_SetContext_Call) RunAndReturn added in v0.6.1

type MockScanService

type MockScanService struct {
	mock.Mock
}

MockScanService is an autogenerated mock type for the ScanService type

func NewMockScanService

func NewMockScanService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockScanService

NewMockScanService creates a new instance of MockScanService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockScanService) AbortScan added in v0.7.0

func (_m *MockScanService) AbortScan() error

AbortScan provides a mock function with given fields:

func (*MockScanService) CheckDependencies

func (_m *MockScanService) CheckDependencies() error

CheckDependencies provides a mock function with given fields:

func (*MockScanService) EXPECT

func (*MockScanService) GetDefaultScanArgs

func (_m *MockScanService) GetDefaultScanArgs() []string

GetDefaultScanArgs provides a mock function with given fields:

func (*MockScanService) Scan

func (_m *MockScanService) Scan(args []string) error

Scan provides a mock function with given fields: args

func (*MockScanService) ScanStream

func (_m *MockScanService) ScanStream(args []string) error

ScanStream provides a mock function with given fields: args

type MockScanService_AbortScan_Call added in v0.7.0

type MockScanService_AbortScan_Call struct {
	*mock.Call
}

MockScanService_AbortScan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AbortScan'

func (*MockScanService_AbortScan_Call) Return added in v0.7.0

func (*MockScanService_AbortScan_Call) Run added in v0.7.0

func (*MockScanService_AbortScan_Call) RunAndReturn added in v0.7.0

type MockScanService_CheckDependencies_Call

type MockScanService_CheckDependencies_Call struct {
	*mock.Call
}

MockScanService_CheckDependencies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckDependencies'

func (*MockScanService_CheckDependencies_Call) Return

func (*MockScanService_CheckDependencies_Call) Run

func (*MockScanService_CheckDependencies_Call) RunAndReturn

type MockScanService_Expecter

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

func (*MockScanService_Expecter) AbortScan added in v0.7.0

AbortScan is a helper method to define mock.On call

func (*MockScanService_Expecter) CheckDependencies

CheckDependencies is a helper method to define mock.On call

func (*MockScanService_Expecter) GetDefaultScanArgs

GetDefaultScanArgs is a helper method to define mock.On call

func (*MockScanService_Expecter) Scan

func (_e *MockScanService_Expecter) Scan(args interface{}) *MockScanService_Scan_Call

Scan is a helper method to define mock.On call

  • args []string

func (*MockScanService_Expecter) ScanStream

func (_e *MockScanService_Expecter) ScanStream(args interface{}) *MockScanService_ScanStream_Call

ScanStream is a helper method to define mock.On call

  • args []string

type MockScanService_GetDefaultScanArgs_Call

type MockScanService_GetDefaultScanArgs_Call struct {
	*mock.Call
}

MockScanService_GetDefaultScanArgs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultScanArgs'

func (*MockScanService_GetDefaultScanArgs_Call) Return

func (*MockScanService_GetDefaultScanArgs_Call) Run

func (*MockScanService_GetDefaultScanArgs_Call) RunAndReturn

type MockScanService_ScanStream_Call

type MockScanService_ScanStream_Call struct {
	*mock.Call
}

MockScanService_ScanStream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScanStream'

func (*MockScanService_ScanStream_Call) Return

func (*MockScanService_ScanStream_Call) Run

func (*MockScanService_ScanStream_Call) RunAndReturn

type MockScanService_Scan_Call

type MockScanService_Scan_Call struct {
	*mock.Call
}

MockScanService_Scan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scan'

func (*MockScanService_Scan_Call) Return

func (*MockScanService_Scan_Call) Run

func (_c *MockScanService_Scan_Call) Run(run func(args []string)) *MockScanService_Scan_Call

func (*MockScanService_Scan_Call) RunAndReturn

func (_c *MockScanService_Scan_Call) RunAndReturn(run func([]string) error) *MockScanService_Scan_Call

type MockScanossApiService added in v0.9.0

type MockScanossApiService struct {
	mock.Mock
}

MockScanossApiService is an autogenerated mock type for the ScanossApiService type

func NewMockScanossApiService added in v0.9.0

func NewMockScanossApiService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockScanossApiService

NewMockScanossApiService creates a new instance of MockScanossApiService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockScanossApiService) EXPECT added in v0.9.0

func (*MockScanossApiService) GetLicensesByPurl added in v0.9.0

GetLicensesByPurl provides a mock function with given fields: request

func (*MockScanossApiService) SearchComponents added in v0.9.0

SearchComponents provides a mock function with given fields: request

func (*MockScanossApiService) SetContext added in v0.9.0

func (_m *MockScanossApiService) SetContext(ctx context.Context)

SetContext provides a mock function with given fields: ctx

type MockScanossApiService_Expecter added in v0.9.0

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

func (*MockScanossApiService_Expecter) GetLicensesByPurl added in v0.9.0

func (_e *MockScanossApiService_Expecter) GetLicensesByPurl(request interface{}) *MockScanossApiService_GetLicensesByPurl_Call

GetLicensesByPurl is a helper method to define mock.On call

  • request entities.ComponentRequest

func (*MockScanossApiService_Expecter) SearchComponents added in v0.9.0

func (_e *MockScanossApiService_Expecter) SearchComponents(request interface{}) *MockScanossApiService_SearchComponents_Call

SearchComponents is a helper method to define mock.On call

  • request entities.ComponentSearchRequest

func (*MockScanossApiService_Expecter) SetContext added in v0.9.0

SetContext is a helper method to define mock.On call

  • ctx context.Context

type MockScanossApiService_GetLicensesByPurl_Call added in v0.9.0

type MockScanossApiService_GetLicensesByPurl_Call struct {
	*mock.Call
}

MockScanossApiService_GetLicensesByPurl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLicensesByPurl'

func (*MockScanossApiService_GetLicensesByPurl_Call) Return added in v0.9.0

func (*MockScanossApiService_GetLicensesByPurl_Call) Run added in v0.9.0

func (*MockScanossApiService_GetLicensesByPurl_Call) RunAndReturn added in v0.9.0

type MockScanossApiService_SearchComponents_Call added in v0.9.0

type MockScanossApiService_SearchComponents_Call struct {
	*mock.Call
}

MockScanossApiService_SearchComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchComponents'

func (*MockScanossApiService_SearchComponents_Call) Return added in v0.9.0

func (*MockScanossApiService_SearchComponents_Call) Run added in v0.9.0

func (*MockScanossApiService_SearchComponents_Call) RunAndReturn added in v0.9.0

type MockScanossApiService_SetContext_Call added in v0.9.0

type MockScanossApiService_SetContext_Call struct {
	*mock.Call
}

MockScanossApiService_SetContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetContext'

func (*MockScanossApiService_SetContext_Call) Return added in v0.9.0

func (*MockScanossApiService_SetContext_Call) Run added in v0.9.0

func (*MockScanossApiService_SetContext_Call) RunAndReturn added in v0.9.0

type MockScanossSettingsService

type MockScanossSettingsService struct {
	mock.Mock
}

MockScanossSettingsService is an autogenerated mock type for the ScanossSettingsService type

func NewMockScanossSettingsService

func NewMockScanossSettingsService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockScanossSettingsService

NewMockScanossSettingsService creates a new instance of MockScanossSettingsService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockScanossSettingsService) AddStagedScanningSkipPattern added in v0.6.5

func (_m *MockScanossSettingsService) AddStagedScanningSkipPattern(pattern string) error

AddStagedScanningSkipPattern provides a mock function with given fields: pattern

func (*MockScanossSettingsService) CommitStagedScanningSkipPatterns added in v0.6.5

func (_m *MockScanossSettingsService) CommitStagedScanningSkipPatterns() error

CommitStagedScanningSkipPatterns provides a mock function with given fields:

func (*MockScanossSettingsService) DiscardStagedScanningSkipPatterns added in v0.6.5

func (_m *MockScanossSettingsService) DiscardStagedScanningSkipPatterns() error

DiscardStagedScanningSkipPatterns provides a mock function with given fields:

func (*MockScanossSettingsService) EXPECT

func (*MockScanossSettingsService) HasStagedScanningSkipPatternChanges added in v0.6.5

func (_m *MockScanossSettingsService) HasStagedScanningSkipPatternChanges() bool

HasStagedScanningSkipPatternChanges provides a mock function with given fields:

func (*MockScanossSettingsService) HasUnsavedChanges

func (_m *MockScanossSettingsService) HasUnsavedChanges() (bool, error)

HasUnsavedChanges provides a mock function with given fields:

func (*MockScanossSettingsService) RemoveStagedScanningSkipPattern added in v0.6.5

func (_m *MockScanossSettingsService) RemoveStagedScanningSkipPattern(path string, pattern string) error

RemoveStagedScanningSkipPattern provides a mock function with given fields: path, pattern

func (*MockScanossSettingsService) Save

func (_m *MockScanossSettingsService) Save() error

Save provides a mock function with given fields:

type MockScanossSettingsService_AddStagedScanningSkipPattern_Call added in v0.6.5

type MockScanossSettingsService_AddStagedScanningSkipPattern_Call struct {
	*mock.Call
}

MockScanossSettingsService_AddStagedScanningSkipPattern_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddStagedScanningSkipPattern'

func (*MockScanossSettingsService_AddStagedScanningSkipPattern_Call) Return added in v0.6.5

func (*MockScanossSettingsService_AddStagedScanningSkipPattern_Call) Run added in v0.6.5

func (*MockScanossSettingsService_AddStagedScanningSkipPattern_Call) RunAndReturn added in v0.6.5

type MockScanossSettingsService_CommitStagedScanningSkipPatterns_Call added in v0.6.5

type MockScanossSettingsService_CommitStagedScanningSkipPatterns_Call struct {
	*mock.Call
}

MockScanossSettingsService_CommitStagedScanningSkipPatterns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CommitStagedScanningSkipPatterns'

func (*MockScanossSettingsService_CommitStagedScanningSkipPatterns_Call) Return added in v0.6.5

func (*MockScanossSettingsService_CommitStagedScanningSkipPatterns_Call) Run added in v0.6.5

func (*MockScanossSettingsService_CommitStagedScanningSkipPatterns_Call) RunAndReturn added in v0.6.5

type MockScanossSettingsService_DiscardStagedScanningSkipPatterns_Call added in v0.6.5

type MockScanossSettingsService_DiscardStagedScanningSkipPatterns_Call struct {
	*mock.Call
}

MockScanossSettingsService_DiscardStagedScanningSkipPatterns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DiscardStagedScanningSkipPatterns'

func (*MockScanossSettingsService_DiscardStagedScanningSkipPatterns_Call) Return added in v0.6.5

func (*MockScanossSettingsService_DiscardStagedScanningSkipPatterns_Call) Run added in v0.6.5

func (*MockScanossSettingsService_DiscardStagedScanningSkipPatterns_Call) RunAndReturn added in v0.6.5

type MockScanossSettingsService_Expecter

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

func (*MockScanossSettingsService_Expecter) AddStagedScanningSkipPattern added in v0.6.5

func (_e *MockScanossSettingsService_Expecter) AddStagedScanningSkipPattern(pattern interface{}) *MockScanossSettingsService_AddStagedScanningSkipPattern_Call

AddStagedScanningSkipPattern is a helper method to define mock.On call

  • pattern string

func (*MockScanossSettingsService_Expecter) CommitStagedScanningSkipPatterns added in v0.6.5

CommitStagedScanningSkipPatterns is a helper method to define mock.On call

func (*MockScanossSettingsService_Expecter) DiscardStagedScanningSkipPatterns added in v0.6.5

DiscardStagedScanningSkipPatterns is a helper method to define mock.On call

func (*MockScanossSettingsService_Expecter) HasStagedScanningSkipPatternChanges added in v0.6.5

HasStagedScanningSkipPatternChanges is a helper method to define mock.On call

func (*MockScanossSettingsService_Expecter) HasUnsavedChanges

HasUnsavedChanges is a helper method to define mock.On call

func (*MockScanossSettingsService_Expecter) RemoveStagedScanningSkipPattern added in v0.6.5

func (_e *MockScanossSettingsService_Expecter) RemoveStagedScanningSkipPattern(path interface{}, pattern interface{}) *MockScanossSettingsService_RemoveStagedScanningSkipPattern_Call

RemoveStagedScanningSkipPattern is a helper method to define mock.On call

  • path string
  • pattern string

func (*MockScanossSettingsService_Expecter) Save

Save is a helper method to define mock.On call

type MockScanossSettingsService_HasStagedScanningSkipPatternChanges_Call added in v0.6.5

type MockScanossSettingsService_HasStagedScanningSkipPatternChanges_Call struct {
	*mock.Call
}

MockScanossSettingsService_HasStagedScanningSkipPatternChanges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasStagedScanningSkipPatternChanges'

func (*MockScanossSettingsService_HasStagedScanningSkipPatternChanges_Call) Return added in v0.6.5

func (*MockScanossSettingsService_HasStagedScanningSkipPatternChanges_Call) Run added in v0.6.5

func (*MockScanossSettingsService_HasStagedScanningSkipPatternChanges_Call) RunAndReturn added in v0.6.5

type MockScanossSettingsService_HasUnsavedChanges_Call

type MockScanossSettingsService_HasUnsavedChanges_Call struct {
	*mock.Call
}

MockScanossSettingsService_HasUnsavedChanges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasUnsavedChanges'

func (*MockScanossSettingsService_HasUnsavedChanges_Call) Return

func (*MockScanossSettingsService_HasUnsavedChanges_Call) Run

func (*MockScanossSettingsService_HasUnsavedChanges_Call) RunAndReturn

type MockScanossSettingsService_RemoveStagedScanningSkipPattern_Call added in v0.6.5

type MockScanossSettingsService_RemoveStagedScanningSkipPattern_Call struct {
	*mock.Call
}

MockScanossSettingsService_RemoveStagedScanningSkipPattern_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveStagedScanningSkipPattern'

func (*MockScanossSettingsService_RemoveStagedScanningSkipPattern_Call) Return added in v0.6.5

func (*MockScanossSettingsService_RemoveStagedScanningSkipPattern_Call) Run added in v0.6.5

func (*MockScanossSettingsService_RemoveStagedScanningSkipPattern_Call) RunAndReturn added in v0.6.5

type MockScanossSettingsService_Save_Call

type MockScanossSettingsService_Save_Call struct {
	*mock.Call
}

MockScanossSettingsService_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'

func (*MockScanossSettingsService_Save_Call) Return

func (*MockScanossSettingsService_Save_Call) Run

func (*MockScanossSettingsService_Save_Call) RunAndReturn

type MockTreeService added in v0.6.5

type MockTreeService struct {
	mock.Mock
}

MockTreeService is an autogenerated mock type for the TreeService type

func NewMockTreeService added in v0.6.5

func NewMockTreeService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTreeService

NewMockTreeService creates a new instance of MockTreeService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockTreeService) EXPECT added in v0.6.5

func (*MockTreeService) GetTree added in v0.6.5

func (_m *MockTreeService) GetTree(rootPath string) ([]entities.TreeNode, error)

GetTree provides a mock function with given fields: rootPath

type MockTreeService_Expecter added in v0.6.5

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

func (*MockTreeService_Expecter) GetTree added in v0.6.5

func (_e *MockTreeService_Expecter) GetTree(rootPath interface{}) *MockTreeService_GetTree_Call

GetTree is a helper method to define mock.On call

  • rootPath string

type MockTreeService_GetTree_Call added in v0.6.5

type MockTreeService_GetTree_Call struct {
	*mock.Call
}

MockTreeService_GetTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTree'

func (*MockTreeService_GetTree_Call) Return added in v0.6.5

func (*MockTreeService_GetTree_Call) Run added in v0.6.5

func (*MockTreeService_GetTree_Call) RunAndReturn added in v0.6.5

Jump to

Keyboard shortcuts

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