| 44 | } |
| 45 | |
| 46 | type MockTeamService struct { |
| 47 | OnCreate func(string, []string, *User) error |
| 48 | OnUpdate func(string, []string) error |
| 49 | OnList func() ([]Team, error) |
| 50 | OnFindByName func(string) (*Team, error) |
| 51 | OnFindByNames func([]string) ([]Team, error) |
| 52 | OnRemove func(string) error |
| 53 | } |
| 54 | |
| 55 | func (m *MockTeamService) Create(ctx context.Context, teamName string, tags []string, user *User) error { |
| 56 | if m.OnCreate == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected