Versions in this module Expand all Collapse all v0 v0.3.0 Sep 30, 2025 Changes in this version + type ServiceMock struct + CreateTaskFunc func(ctx context.Context, title string) (*example.Task, error) + DeleteTaskFunc func(ctx context.Context, id int64) error + GenerateErrorFunc func(ctx context.Context) error + ListTasksFunc func(ctx context.Context) ([]*example.Task, error) + func (mock *ServiceMock) CreateTask(ctx context.Context, title string) (*example.Task, error) + func (mock *ServiceMock) CreateTaskCalls() []struct{ ... } + func (mock *ServiceMock) DeleteTask(ctx context.Context, id int64) error + func (mock *ServiceMock) DeleteTaskCalls() []struct{ ... } + func (mock *ServiceMock) GenerateError(ctx context.Context) error + func (mock *ServiceMock) GenerateErrorCalls() []struct{ ... } + func (mock *ServiceMock) ListTasks(ctx context.Context) ([]*example.Task, error) + func (mock *ServiceMock) ListTasksCalls() []struct{ ... } v0.2.0 Sep 27, 2025 Changes in this version + type DBMock struct + CreateTaskFunc func(ctx context.Context, title string) (*example.Task, error) + DeleteTaskFunc func(ctx context.Context, id int64) error + GenerateErrorFunc func(ctx context.Context) error + ListTasksFunc func(ctx context.Context) ([]*example.Task, error) + func (mock *DBMock) CreateTask(ctx context.Context, title string) (*example.Task, error) + func (mock *DBMock) CreateTaskCalls() []struct{ ... } + func (mock *DBMock) DeleteTask(ctx context.Context, id int64) error + func (mock *DBMock) DeleteTaskCalls() []struct{ ... } + func (mock *DBMock) GenerateError(ctx context.Context) error + func (mock *DBMock) GenerateErrorCalls() []struct{ ... } + func (mock *DBMock) ListTasks(ctx context.Context) ([]*example.Task, error) + func (mock *DBMock) ListTasksCalls() []struct{ ... }