Documentation
¶
Index ¶
- type MockWarning
- type MockWarning_Create_Call
- func (_c *MockWarning_Create_Call) Return(result warning.WarningResponse, err error) *MockWarning_Create_Call
- func (_c *MockWarning_Create_Call) Run(run func(in *warning.WarningCreate)) *MockWarning_Create_Call
- func (_c *MockWarning_Create_Call) RunAndReturn(run func(*warning.WarningCreate) (warning.WarningResponse, error)) *MockWarning_Create_Call
- type MockWarning_Expecter
- type Service
- type Status
- type Warning
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWarning ¶
MockWarning is an autogenerated mock type for the Warning type
func NewMockWarning ¶
func NewMockWarning(t interface {
mock.TestingT
Cleanup(func())
}) *MockWarning
NewMockWarning creates a new instance of MockWarning. 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 (*MockWarning) Create ¶
func (_m *MockWarning) Create(in *warning.WarningCreate) (warning.WarningResponse, error)
Create provides a mock function with given fields: in
func (*MockWarning) EXPECT ¶
func (_m *MockWarning) EXPECT() *MockWarning_Expecter
type MockWarning_Create_Call ¶
MockWarning_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockWarning_Create_Call) Return ¶
func (_c *MockWarning_Create_Call) Return(result warning.WarningResponse, err error) *MockWarning_Create_Call
func (*MockWarning_Create_Call) Run ¶
func (_c *MockWarning_Create_Call) Run(run func(in *warning.WarningCreate)) *MockWarning_Create_Call
func (*MockWarning_Create_Call) RunAndReturn ¶
func (_c *MockWarning_Create_Call) RunAndReturn(run func(*warning.WarningCreate) (warning.WarningResponse, error)) *MockWarning_Create_Call
type MockWarning_Expecter ¶
type MockWarning_Expecter struct {
// contains filtered or unexported fields
}
func (*MockWarning_Expecter) Create ¶
func (_e *MockWarning_Expecter) Create(in interface{}) *MockWarning_Create_Call
Create is a helper method to define mock.On call
- in *warning.WarningCreate
type Service ¶
func NewService ¶
func NewService(ctx context.Context, repos *repository.Repository, logger logging.Logger) *Service
type Warning ¶
type Warning interface {
Create(in *warning.WarningCreate) (result warning.WarningResponse, err error)
}
Click to show internal directories.
Click to hide internal directories.