MCPcopy
hub / github.com/tsuru/tsuru / MockTeamService

Struct MockTeamService

types/auth/team_mock.go:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46type 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
55func (m *MockTeamService) Create(ctx context.Context, teamName string, tags []string, user *User) error {
56 if m.OnCreate == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected