mocks

package
v0.8.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FactoryMock

type FactoryMock struct {
	mock.Mock
}

FactoryMock is an autogenerated mock type for the Factory type

func NewFactoryMock

func NewFactoryMock(t mockConstructorTestingTNewFactoryMock) *FactoryMock

NewFactoryMock creates a new instance of FactoryMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FactoryMock) CreateRule

func (_m *FactoryMock) CreateRule(version string, srcID string, ruleConfig config.Rule) (rule.Rule, error)

CreateRule provides a mock function with given fields: version, srcID, ruleConfig

func (*FactoryMock) DefaultRule

func (_m *FactoryMock) DefaultRule() rule.Rule

DefaultRule provides a mock function with given fields:

func (*FactoryMock) EXPECT

func (_m *FactoryMock) EXPECT() *FactoryMock_Expecter

func (*FactoryMock) HasDefaultRule

func (_m *FactoryMock) HasDefaultRule() bool

HasDefaultRule provides a mock function with given fields:

type FactoryMock_CreateRule_Call

type FactoryMock_CreateRule_Call struct {
	*mock.Call
}

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

func (*FactoryMock_CreateRule_Call) Return

func (*FactoryMock_CreateRule_Call) Run

func (_c *FactoryMock_CreateRule_Call) Run(run func(version string, srcID string, ruleConfig config.Rule)) *FactoryMock_CreateRule_Call

func (*FactoryMock_CreateRule_Call) RunAndReturn

type FactoryMock_DefaultRule_Call

type FactoryMock_DefaultRule_Call struct {
	*mock.Call
}

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

func (*FactoryMock_DefaultRule_Call) Return

func (*FactoryMock_DefaultRule_Call) Run

func (*FactoryMock_DefaultRule_Call) RunAndReturn

type FactoryMock_Expecter

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

func (*FactoryMock_Expecter) CreateRule

func (_e *FactoryMock_Expecter) CreateRule(version interface{}, srcID interface{}, ruleConfig interface{}) *FactoryMock_CreateRule_Call

CreateRule is a helper method to define mock.On call

  • version string
  • srcID string
  • ruleConfig config.Rule

func (*FactoryMock_Expecter) DefaultRule

DefaultRule is a helper method to define mock.On call

func (*FactoryMock_Expecter) HasDefaultRule

HasDefaultRule is a helper method to define mock.On call

type FactoryMock_HasDefaultRule_Call

type FactoryMock_HasDefaultRule_Call struct {
	*mock.Call
}

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

func (*FactoryMock_HasDefaultRule_Call) Return

func (*FactoryMock_HasDefaultRule_Call) Run

func (*FactoryMock_HasDefaultRule_Call) RunAndReturn

type RepositoryMock

type RepositoryMock struct {
	mock.Mock
}

RepositoryMock is an autogenerated mock type for the Repository type

func NewRepositoryMock

func NewRepositoryMock(t mockConstructorTestingTNewRepositoryMock) *RepositoryMock

NewRepositoryMock creates a new instance of RepositoryMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RepositoryMock) EXPECT

func (*RepositoryMock) FindRule

func (_m *RepositoryMock) FindRule(_a0 *url.URL) (rule.Rule, error)

FindRule provides a mock function with given fields: _a0

type RepositoryMock_Expecter

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

func (*RepositoryMock_Expecter) FindRule

func (_e *RepositoryMock_Expecter) FindRule(_a0 interface{}) *RepositoryMock_FindRule_Call

FindRule is a helper method to define mock.On call

  • _a0 *url.URL

type RepositoryMock_FindRule_Call

type RepositoryMock_FindRule_Call struct {
	*mock.Call
}

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

func (*RepositoryMock_FindRule_Call) Return

func (*RepositoryMock_FindRule_Call) Run

func (*RepositoryMock_FindRule_Call) RunAndReturn

type RuleMock

type RuleMock struct {
	mock.Mock
}

RuleMock is an autogenerated mock type for the Rule type

func NewRuleMock

func NewRuleMock(t mockConstructorTestingTNewRuleMock) *RuleMock

NewRuleMock creates a new instance of RuleMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RuleMock) EXPECT

func (_m *RuleMock) EXPECT() *RuleMock_Expecter

func (*RuleMock) Execute

func (_m *RuleMock) Execute(_a0 heimdall.Context) (*url.URL, error)

Execute provides a mock function with given fields: _a0

func (*RuleMock) ID

func (_m *RuleMock) ID() string

ID provides a mock function with given fields:

func (*RuleMock) MatchesMethod

func (_m *RuleMock) MatchesMethod(_a0 string) bool

MatchesMethod provides a mock function with given fields: _a0

func (*RuleMock) MatchesURL

func (_m *RuleMock) MatchesURL(_a0 *url.URL) bool

MatchesURL provides a mock function with given fields: _a0

func (*RuleMock) SrcID

func (_m *RuleMock) SrcID() string

SrcID provides a mock function with given fields:

type RuleMock_Execute_Call

type RuleMock_Execute_Call struct {
	*mock.Call
}

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

func (*RuleMock_Execute_Call) Return

func (_c *RuleMock_Execute_Call) Return(_a0 *url.URL, _a1 error) *RuleMock_Execute_Call

func (*RuleMock_Execute_Call) Run

func (*RuleMock_Execute_Call) RunAndReturn

func (_c *RuleMock_Execute_Call) RunAndReturn(run func(heimdall.Context) (*url.URL, error)) *RuleMock_Execute_Call

type RuleMock_Expecter

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

func (*RuleMock_Expecter) Execute

func (_e *RuleMock_Expecter) Execute(_a0 interface{}) *RuleMock_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 heimdall.Context

func (*RuleMock_Expecter) ID

ID is a helper method to define mock.On call

func (*RuleMock_Expecter) MatchesMethod

func (_e *RuleMock_Expecter) MatchesMethod(_a0 interface{}) *RuleMock_MatchesMethod_Call

MatchesMethod is a helper method to define mock.On call

  • _a0 string

func (*RuleMock_Expecter) MatchesURL

func (_e *RuleMock_Expecter) MatchesURL(_a0 interface{}) *RuleMock_MatchesURL_Call

MatchesURL is a helper method to define mock.On call

  • _a0 *url.URL

func (*RuleMock_Expecter) SrcID

SrcID is a helper method to define mock.On call

type RuleMock_ID_Call

type RuleMock_ID_Call struct {
	*mock.Call
}

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

func (*RuleMock_ID_Call) Return

func (_c *RuleMock_ID_Call) Return(_a0 string) *RuleMock_ID_Call

func (*RuleMock_ID_Call) Run

func (_c *RuleMock_ID_Call) Run(run func()) *RuleMock_ID_Call

func (*RuleMock_ID_Call) RunAndReturn

func (_c *RuleMock_ID_Call) RunAndReturn(run func() string) *RuleMock_ID_Call

type RuleMock_MatchesMethod_Call

type RuleMock_MatchesMethod_Call struct {
	*mock.Call
}

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

func (*RuleMock_MatchesMethod_Call) Return

func (*RuleMock_MatchesMethod_Call) Run

func (*RuleMock_MatchesMethod_Call) RunAndReturn

type RuleMock_MatchesURL_Call

type RuleMock_MatchesURL_Call struct {
	*mock.Call
}

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

func (*RuleMock_MatchesURL_Call) Return

func (*RuleMock_MatchesURL_Call) Run

func (_c *RuleMock_MatchesURL_Call) Run(run func(_a0 *url.URL)) *RuleMock_MatchesURL_Call

func (*RuleMock_MatchesURL_Call) RunAndReturn

func (_c *RuleMock_MatchesURL_Call) RunAndReturn(run func(*url.URL) bool) *RuleMock_MatchesURL_Call

type RuleMock_SrcID_Call

type RuleMock_SrcID_Call struct {
	*mock.Call
}

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

func (*RuleMock_SrcID_Call) Return

func (*RuleMock_SrcID_Call) Run

func (_c *RuleMock_SrcID_Call) Run(run func()) *RuleMock_SrcID_Call

func (*RuleMock_SrcID_Call) RunAndReturn

func (_c *RuleMock_SrcID_Call) RunAndReturn(run func() string) *RuleMock_SrcID_Call

type RuleSetProcessorMock

type RuleSetProcessorMock struct {
	mock.Mock
}

RuleSetProcessorMock is an autogenerated mock type for the SetProcessor type

func NewRuleSetProcessorMock

func NewRuleSetProcessorMock(t mockConstructorTestingTNewRuleSetProcessorMock) *RuleSetProcessorMock

NewRuleSetProcessorMock creates a new instance of RuleSetProcessorMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RuleSetProcessorMock) EXPECT

func (*RuleSetProcessorMock) OnCreated

func (_m *RuleSetProcessorMock) OnCreated(ruleSet *config.RuleSet) error

OnCreated provides a mock function with given fields: ruleSet

func (*RuleSetProcessorMock) OnDeleted

func (_m *RuleSetProcessorMock) OnDeleted(ruleSet *config.RuleSet) error

OnDeleted provides a mock function with given fields: ruleSet

func (*RuleSetProcessorMock) OnUpdated

func (_m *RuleSetProcessorMock) OnUpdated(ruleSet *config.RuleSet) error

OnUpdated provides a mock function with given fields: ruleSet

type RuleSetProcessorMock_Expecter

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

func (*RuleSetProcessorMock_Expecter) OnCreated

func (_e *RuleSetProcessorMock_Expecter) OnCreated(ruleSet interface{}) *RuleSetProcessorMock_OnCreated_Call

OnCreated is a helper method to define mock.On call

  • ruleSet *config.RuleSet

func (*RuleSetProcessorMock_Expecter) OnDeleted

func (_e *RuleSetProcessorMock_Expecter) OnDeleted(ruleSet interface{}) *RuleSetProcessorMock_OnDeleted_Call

OnDeleted is a helper method to define mock.On call

  • ruleSet *config.RuleSet

func (*RuleSetProcessorMock_Expecter) OnUpdated

func (_e *RuleSetProcessorMock_Expecter) OnUpdated(ruleSet interface{}) *RuleSetProcessorMock_OnUpdated_Call

OnUpdated is a helper method to define mock.On call

  • ruleSet *config.RuleSet

type RuleSetProcessorMock_OnCreated_Call

type RuleSetProcessorMock_OnCreated_Call struct {
	*mock.Call
}

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

func (*RuleSetProcessorMock_OnCreated_Call) Return

func (*RuleSetProcessorMock_OnCreated_Call) Run

func (*RuleSetProcessorMock_OnCreated_Call) RunAndReturn

type RuleSetProcessorMock_OnDeleted_Call

type RuleSetProcessorMock_OnDeleted_Call struct {
	*mock.Call
}

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

func (*RuleSetProcessorMock_OnDeleted_Call) Return

func (*RuleSetProcessorMock_OnDeleted_Call) Run

func (*RuleSetProcessorMock_OnDeleted_Call) RunAndReturn

type RuleSetProcessorMock_OnUpdated_Call

type RuleSetProcessorMock_OnUpdated_Call struct {
	*mock.Call
}

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

func (*RuleSetProcessorMock_OnUpdated_Call) Return

func (*RuleSetProcessorMock_OnUpdated_Call) Run

func (*RuleSetProcessorMock_OnUpdated_Call) RunAndReturn

Jump to

Keyboard shortcuts

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