Documentation ¶
Index ¶
- type Controller
- func (_m *Controller) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Controller) Create(ctx context.Context, r *robot.Robot) (int64, string, error)
- func (_m *Controller) Delete(ctx context.Context, id int64, option ...*robot.Option) error
- func (_m *Controller) Get(ctx context.Context, id int64, option *robot.Option) (*robot.Robot, error)
- func (_m *Controller) List(ctx context.Context, query *q.Query, option *robot.Option) ([]*robot.Robot, error)
- func (_m *Controller) Update(ctx context.Context, r *robot.Robot, option *robot.Option) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller is an autogenerated mock type for the Controller type
func NewController ¶
func NewController(t interface { mock.TestingT Cleanup(func()) }) *Controller
NewController creates a new instance of Controller. 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 (*Controller) Get ¶
func (_m *Controller) Get(ctx context.Context, id int64, option *robot.Option) (*robot.Robot, error)
Get provides a mock function with given fields: ctx, id, option
Click to show internal directories.
Click to hide internal directories.