mock_modagent

package
v18.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mock_modagent is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPI

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

MockAPI is a mock of API interface.

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

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

func (*MockAPI) GetAgentKey added in v18.1.0

func (m *MockAPI) GetAgentKey(ctx context.Context) (api.AgentKey, error)

GetAgentKey mocks base method.

func (*MockAPI) GetGitLabExternalURL

func (m *MockAPI) GetGitLabExternalURL(ctx context.Context) (url.URL, error)

GetGitLabExternalURL mocks base method.

func (*MockAPI) HandleProcessingError

func (m *MockAPI) HandleProcessingError(ctx context.Context, log *slog.Logger, msg string, err error, fields ...fieldz.Field)

HandleProcessingError mocks base method.

func (*MockAPI) MakeGitLabRequest

func (m *MockAPI) MakeGitLabRequest(ctx context.Context, path string, opts ...modagent.GitLabRequestOption) (*modagent.GitLabResponse, error)

MakeGitLabRequest mocks base method.

func (*MockAPI) TryGetAgentKey added in v18.1.0

func (m *MockAPI) TryGetAgentKey() (api.AgentKey, bool)

TryGetAgentKey mocks base method.

type MockAPIGetAgentKeyCall added in v18.1.0

type MockAPIGetAgentKeyCall struct {
	*gomock.Call
}

MockAPIGetAgentKeyCall wrap *gomock.Call

func (*MockAPIGetAgentKeyCall) Do added in v18.1.0

Do rewrite *gomock.Call.Do

func (*MockAPIGetAgentKeyCall) DoAndReturn added in v18.1.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPIGetAgentKeyCall) Return added in v18.1.0

Return rewrite *gomock.Call.Return

type MockAPIGetGitLabExternalURLCall

type MockAPIGetGitLabExternalURLCall struct {
	*gomock.Call
}

MockAPIGetGitLabExternalURLCall wrap *gomock.Call

func (*MockAPIGetGitLabExternalURLCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPIGetGitLabExternalURLCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPIGetGitLabExternalURLCall) Return

Return rewrite *gomock.Call.Return

type MockAPIHandleProcessingErrorCall

type MockAPIHandleProcessingErrorCall struct {
	*gomock.Call
}

MockAPIHandleProcessingErrorCall wrap *gomock.Call

func (*MockAPIHandleProcessingErrorCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPIHandleProcessingErrorCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPIHandleProcessingErrorCall) Return

Return rewrite *gomock.Call.Return

type MockAPIMakeGitLabRequestCall

type MockAPIMakeGitLabRequestCall struct {
	*gomock.Call
}

MockAPIMakeGitLabRequestCall wrap *gomock.Call

func (*MockAPIMakeGitLabRequestCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPIMakeGitLabRequestCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPIMakeGitLabRequestCall) Return

Return rewrite *gomock.Call.Return

type MockAPIMockRecorder

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

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) GetAgentKey added in v18.1.0

func (mr *MockAPIMockRecorder) GetAgentKey(ctx any) *MockAPIGetAgentKeyCall

GetAgentKey indicates an expected call of GetAgentKey.

func (*MockAPIMockRecorder) GetGitLabExternalURL

func (mr *MockAPIMockRecorder) GetGitLabExternalURL(ctx any) *MockAPIGetGitLabExternalURLCall

GetGitLabExternalURL indicates an expected call of GetGitLabExternalURL.

func (*MockAPIMockRecorder) HandleProcessingError

func (mr *MockAPIMockRecorder) HandleProcessingError(ctx, log, msg, err any, fields ...any) *MockAPIHandleProcessingErrorCall

HandleProcessingError indicates an expected call of HandleProcessingError.

func (*MockAPIMockRecorder) MakeGitLabRequest

func (mr *MockAPIMockRecorder) MakeGitLabRequest(ctx, path any, opts ...any) *MockAPIMakeGitLabRequestCall

MakeGitLabRequest indicates an expected call of MakeGitLabRequest.

func (*MockAPIMockRecorder) TryGetAgentKey added in v18.1.0

func (mr *MockAPIMockRecorder) TryGetAgentKey() *MockAPITryGetAgentKeyCall

TryGetAgentKey indicates an expected call of TryGetAgentKey.

type MockAPITryGetAgentKeyCall added in v18.1.0

type MockAPITryGetAgentKeyCall struct {
	*gomock.Call
}

MockAPITryGetAgentKeyCall wrap *gomock.Call

func (*MockAPITryGetAgentKeyCall) Do added in v18.1.0

Do rewrite *gomock.Call.Do

func (*MockAPITryGetAgentKeyCall) DoAndReturn added in v18.1.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPITryGetAgentKeyCall) Return added in v18.1.0

Return rewrite *gomock.Call.Return

type MockFactory

type MockFactory[CF any, CM any] struct {
	// contains filtered or unexported fields
}

MockFactory is a mock of Factory interface.

func NewMockFactory

func NewMockFactory[CF any, CM any](ctrl *gomock.Controller) *MockFactory[CF, CM]

NewMockFactory creates a new mock instance.

func (*MockFactory[CF, CM]) EXPECT

func (m *MockFactory[CF, CM]) EXPECT() *MockFactoryMockRecorder[CF, CM]

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

func (*MockFactory[CF, CM]) IsProducingLeaderModules

func (m *MockFactory[CF, CM]) IsProducingLeaderModules() bool

IsProducingLeaderModules mocks base method.

func (*MockFactory[CF, CM]) Name

func (m *MockFactory[CF, CM]) Name() string

Name mocks base method.

func (*MockFactory[CF, CM]) New

func (m *MockFactory[CF, CM]) New(arg0 CF) (modagent.Module[CM], error)

New mocks base method.

type MockFactoryIsProducingLeaderModulesCall

type MockFactoryIsProducingLeaderModulesCall[CF any, CM any] struct {
	*gomock.Call
}

MockFactoryIsProducingLeaderModulesCall wrap *gomock.Call

func (*MockFactoryIsProducingLeaderModulesCall[CF, CM]) Do

Do rewrite *gomock.Call.Do

func (*MockFactoryIsProducingLeaderModulesCall[CF, CM]) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFactoryIsProducingLeaderModulesCall[CF, CM]) Return

Return rewrite *gomock.Call.Return

type MockFactoryMockRecorder

type MockFactoryMockRecorder[CF any, CM any] struct {
	// contains filtered or unexported fields
}

MockFactoryMockRecorder is the mock recorder for MockFactory.

func (*MockFactoryMockRecorder[CF, CM]) IsProducingLeaderModules

func (mr *MockFactoryMockRecorder[CF, CM]) IsProducingLeaderModules() *MockFactoryIsProducingLeaderModulesCall[CF, CM]

IsProducingLeaderModules indicates an expected call of IsProducingLeaderModules.

func (*MockFactoryMockRecorder[CF, CM]) Name

func (mr *MockFactoryMockRecorder[CF, CM]) Name() *MockFactoryNameCall[CF, CM]

Name indicates an expected call of Name.

func (*MockFactoryMockRecorder[CF, CM]) New

func (mr *MockFactoryMockRecorder[CF, CM]) New(arg0 any) *MockFactoryNewCall[CF, CM]

New indicates an expected call of New.

type MockFactoryNameCall

type MockFactoryNameCall[CF any, CM any] struct {
	*gomock.Call
}

MockFactoryNameCall wrap *gomock.Call

func (*MockFactoryNameCall[CF, CM]) Do

func (c *MockFactoryNameCall[CF, CM]) Do(f func() string) *MockFactoryNameCall[CF, CM]

Do rewrite *gomock.Call.Do

func (*MockFactoryNameCall[CF, CM]) DoAndReturn

func (c *MockFactoryNameCall[CF, CM]) DoAndReturn(f func() string) *MockFactoryNameCall[CF, CM]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFactoryNameCall[CF, CM]) Return

func (c *MockFactoryNameCall[CF, CM]) Return(arg0 string) *MockFactoryNameCall[CF, CM]

Return rewrite *gomock.Call.Return

type MockFactoryNewCall

type MockFactoryNewCall[CF any, CM any] struct {
	*gomock.Call
}

MockFactoryNewCall wrap *gomock.Call

func (*MockFactoryNewCall[CF, CM]) Do

func (c *MockFactoryNewCall[CF, CM]) Do(f func(CF) (modagent.Module[CM], error)) *MockFactoryNewCall[CF, CM]

Do rewrite *gomock.Call.Do

func (*MockFactoryNewCall[CF, CM]) DoAndReturn

func (c *MockFactoryNewCall[CF, CM]) DoAndReturn(f func(CF) (modagent.Module[CM], error)) *MockFactoryNewCall[CF, CM]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFactoryNewCall[CF, CM]) Return

func (c *MockFactoryNewCall[CF, CM]) Return(arg0 modagent.Module[CM], arg1 error) *MockFactoryNewCall[CF, CM]

Return rewrite *gomock.Call.Return

type MockModule

type MockModule[CM any] struct {
	// contains filtered or unexported fields
}

MockModule is a mock of Module interface.

func NewMockModule

func NewMockModule[CM any](ctrl *gomock.Controller) *MockModule[CM]

NewMockModule creates a new mock instance.

func (*MockModule[CM]) DefaultAndValidateConfiguration

func (m *MockModule[CM]) DefaultAndValidateConfiguration(cfg CM) error

DefaultAndValidateConfiguration mocks base method.

func (*MockModule[CM]) EXPECT

func (m *MockModule[CM]) EXPECT() *MockModuleMockRecorder[CM]

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

func (*MockModule[CM]) Name

func (m *MockModule[CM]) Name() string

Name mocks base method.

func (*MockModule[CM]) Run

func (m *MockModule[CM]) Run(ctx context.Context, cfg <-chan CM) error

Run mocks base method.

type MockModuleDefaultAndValidateConfigurationCall

type MockModuleDefaultAndValidateConfigurationCall[CM any] struct {
	*gomock.Call
}

MockModuleDefaultAndValidateConfigurationCall wrap *gomock.Call

func (*MockModuleDefaultAndValidateConfigurationCall[CM]) Do

Do rewrite *gomock.Call.Do

func (*MockModuleDefaultAndValidateConfigurationCall[CM]) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockModuleDefaultAndValidateConfigurationCall[CM]) Return

Return rewrite *gomock.Call.Return

type MockModuleMockRecorder

type MockModuleMockRecorder[CM any] struct {
	// contains filtered or unexported fields
}

MockModuleMockRecorder is the mock recorder for MockModule.

func (*MockModuleMockRecorder[CM]) DefaultAndValidateConfiguration

func (mr *MockModuleMockRecorder[CM]) DefaultAndValidateConfiguration(cfg any) *MockModuleDefaultAndValidateConfigurationCall[CM]

DefaultAndValidateConfiguration indicates an expected call of DefaultAndValidateConfiguration.

func (*MockModuleMockRecorder[CM]) Name

func (mr *MockModuleMockRecorder[CM]) Name() *MockModuleNameCall[CM]

Name indicates an expected call of Name.

func (*MockModuleMockRecorder[CM]) Run

func (mr *MockModuleMockRecorder[CM]) Run(ctx, cfg any) *MockModuleRunCall[CM]

Run indicates an expected call of Run.

type MockModuleNameCall

type MockModuleNameCall[CM any] struct {
	*gomock.Call
}

MockModuleNameCall wrap *gomock.Call

func (*MockModuleNameCall[CM]) Do

func (c *MockModuleNameCall[CM]) Do(f func() string) *MockModuleNameCall[CM]

Do rewrite *gomock.Call.Do

func (*MockModuleNameCall[CM]) DoAndReturn

func (c *MockModuleNameCall[CM]) DoAndReturn(f func() string) *MockModuleNameCall[CM]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockModuleNameCall[CM]) Return

func (c *MockModuleNameCall[CM]) Return(arg0 string) *MockModuleNameCall[CM]

Return rewrite *gomock.Call.Return

type MockModuleRunCall

type MockModuleRunCall[CM any] struct {
	*gomock.Call
}

MockModuleRunCall wrap *gomock.Call

func (*MockModuleRunCall[CM]) Do

func (c *MockModuleRunCall[CM]) Do(f func(context.Context, <-chan CM) error) *MockModuleRunCall[CM]

Do rewrite *gomock.Call.Do

func (*MockModuleRunCall[CM]) DoAndReturn

func (c *MockModuleRunCall[CM]) DoAndReturn(f func(context.Context, <-chan CM) error) *MockModuleRunCall[CM]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockModuleRunCall[CM]) Return

func (c *MockModuleRunCall[CM]) Return(arg0 error) *MockModuleRunCall[CM]

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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