Documentation ¶
Index ¶
- type Client
- type MockClient
- type MockClient_DecisionID_Call
- type MockClient_Decision_Call
- func (_c *MockClient_Decision_Call) Return(_a0 *sdk.DecisionResult, _a1 error) *MockClient_Decision_Call
- func (_c *MockClient_Decision_Call) Run(run func(ctx context.Context, options sdk.DecisionOptions)) *MockClient_Decision_Call
- func (_c *MockClient_Decision_Call) RunAndReturn(run func(context.Context, sdk.DecisionOptions) (*sdk.DecisionResult, error)) *MockClient_Decision_Call
- type MockClient_Expecter
- type MockClient_Path_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t interface { mock.TestingT Cleanup(func()) }) *MockClient
NewMockClient creates a new instance of MockClient. 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 (*MockClient) Decision ¶
func (_m *MockClient) Decision(ctx context.Context, options sdk.DecisionOptions) (*sdk.DecisionResult, error)
Decision provides a mock function with given fields: ctx, options
func (*MockClient) DecisionID ¶
func (_m *MockClient) DecisionID(ctx context.Context) string
DecisionID provides a mock function with given fields: ctx
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
type MockClient_DecisionID_Call ¶
MockClient_DecisionID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DecisionID'
func (*MockClient_DecisionID_Call) Return ¶
func (_c *MockClient_DecisionID_Call) Return(_a0 string) *MockClient_DecisionID_Call
func (*MockClient_DecisionID_Call) Run ¶
func (_c *MockClient_DecisionID_Call) Run(run func(ctx context.Context)) *MockClient_DecisionID_Call
func (*MockClient_DecisionID_Call) RunAndReturn ¶
func (_c *MockClient_DecisionID_Call) RunAndReturn(run func(context.Context) string) *MockClient_DecisionID_Call
type MockClient_Decision_Call ¶
MockClient_Decision_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decision'
func (*MockClient_Decision_Call) Return ¶
func (_c *MockClient_Decision_Call) Return(_a0 *sdk.DecisionResult, _a1 error) *MockClient_Decision_Call
func (*MockClient_Decision_Call) Run ¶
func (_c *MockClient_Decision_Call) Run(run func(ctx context.Context, options sdk.DecisionOptions)) *MockClient_Decision_Call
func (*MockClient_Decision_Call) RunAndReturn ¶
func (_c *MockClient_Decision_Call) RunAndReturn(run func(context.Context, sdk.DecisionOptions) (*sdk.DecisionResult, error)) *MockClient_Decision_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) Decision ¶
func (_e *MockClient_Expecter) Decision(ctx interface{}, options interface{}) *MockClient_Decision_Call
Decision is a helper method to define mock.On call
- ctx context.Context
- options sdk.DecisionOptions
func (*MockClient_Expecter) DecisionID ¶
func (_e *MockClient_Expecter) DecisionID(ctx interface{}) *MockClient_DecisionID_Call
DecisionID is a helper method to define mock.On call
- ctx context.Context
func (*MockClient_Expecter) Path ¶
func (_e *MockClient_Expecter) Path(module interface{}, rule interface{}) *MockClient_Path_Call
Path is a helper method to define mock.On call
- module string
- rule string
type MockClient_Path_Call ¶
MockClient_Path_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Path'
func (*MockClient_Path_Call) Return ¶
func (_c *MockClient_Path_Call) Return(_a0 string) *MockClient_Path_Call
func (*MockClient_Path_Call) Run ¶
func (_c *MockClient_Path_Call) Run(run func(module string, rule string)) *MockClient_Path_Call
func (*MockClient_Path_Call) RunAndReturn ¶
func (_c *MockClient_Path_Call) RunAndReturn(run func(string, string) string) *MockClient_Path_Call