Documentation
¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeNotification
- func (fake *FakeNotification) Create(arg1 context.Context, arg2 models.DBTX, arg3 *models.NotificationCreateParams) (*models.UserNotification, error)
- func (fake *FakeNotification) CreateArgsForCall(i int) (context.Context, models.DBTX, *models.NotificationCreateParams)
- func (fake *FakeNotification) CreateCallCount() int
- func (fake *FakeNotification) CreateCalls(...)
- func (fake *FakeNotification) CreateReturns(result1 *models.UserNotification, result2 error)
- func (fake *FakeNotification) CreateReturnsOnCall(i int, result1 *models.UserNotification, result2 error)
- func (fake *FakeNotification) Delete(arg1 context.Context, arg2 models.DBTX, arg3 models.NotificationID) (*models.Notification, error)
- func (fake *FakeNotification) DeleteArgsForCall(i int) (context.Context, models.DBTX, models.NotificationID)
- func (fake *FakeNotification) DeleteCallCount() int
- func (fake *FakeNotification) DeleteCalls(...)
- func (fake *FakeNotification) DeleteReturns(result1 *models.Notification, result2 error)
- func (fake *FakeNotification) DeleteReturnsOnCall(i int, result1 *models.Notification, result2 error)
- func (fake *FakeNotification) Invocations() map[string][][]interface{}
- func (fake *FakeNotification) LatestNotifications(arg1 context.Context, arg2 models.DBTX, ...) ([]models.GetUserNotificationsRow, error)
- func (fake *FakeNotification) LatestNotificationsArgsForCall(i int) (context.Context, models.DBTX, *models.GetUserNotificationsParams)
- func (fake *FakeNotification) LatestNotificationsCallCount() int
- func (fake *FakeNotification) LatestNotificationsCalls(...)
- func (fake *FakeNotification) LatestNotificationsReturns(result1 []models.GetUserNotificationsRow, result2 error)
- func (fake *FakeNotification) LatestNotificationsReturnsOnCall(i int, result1 []models.GetUserNotificationsRow, result2 error)
- func (fake *FakeNotification) PaginatedUserNotifications(arg1 context.Context, arg2 models.DBTX, arg3 models.UserID, ...) ([]models.UserNotification, error)
- func (fake *FakeNotification) PaginatedUserNotificationsArgsForCall(i int) (context.Context, models.DBTX, models.UserID, ...)
- func (fake *FakeNotification) PaginatedUserNotificationsCallCount() int
- func (fake *FakeNotification) PaginatedUserNotificationsCalls(...)
- func (fake *FakeNotification) PaginatedUserNotificationsReturns(result1 []models.UserNotification, result2 error)
- func (fake *FakeNotification) PaginatedUserNotificationsReturnsOnCall(i int, result1 []models.UserNotification, result2 error)
- type FakeProject
- func (fake *FakeProject) ByID(arg1 context.Context, arg2 models.DBTX, arg3 models.ProjectID, ...) (*models.Project, error)
- func (fake *FakeProject) ByIDArgsForCall(i int) (context.Context, models.DBTX, models.ProjectID, ...)
- func (fake *FakeProject) ByIDCallCount() int
- func (fake *FakeProject) ByIDCalls(...)
- func (fake *FakeProject) ByIDReturns(result1 *models.Project, result2 error)
- func (fake *FakeProject) ByIDReturnsOnCall(i int, result1 *models.Project, result2 error)
- func (fake *FakeProject) ByName(arg1 context.Context, arg2 models.DBTX, arg3 models.ProjectName, ...) (*models.Project, error)
- func (fake *FakeProject) ByNameArgsForCall(i int) (context.Context, models.DBTX, models.ProjectName, ...)
- func (fake *FakeProject) ByNameCallCount() int
- func (fake *FakeProject) ByNameCalls(...)
- func (fake *FakeProject) ByNameReturns(result1 *models.Project, result2 error)
- func (fake *FakeProject) ByNameReturnsOnCall(i int, result1 *models.Project, result2 error)
- func (fake *FakeProject) Invocations() map[string][][]interface{}
- func (fake *FakeProject) IsTeamInProject(arg1 context.Context, arg2 models.DBTX, arg3 models.IsTeamInProjectParams) (bool, error)
- func (fake *FakeProject) IsTeamInProjectArgsForCall(i int) (context.Context, models.DBTX, models.IsTeamInProjectParams)
- func (fake *FakeProject) IsTeamInProjectCallCount() int
- func (fake *FakeProject) IsTeamInProjectCalls(...)
- func (fake *FakeProject) IsTeamInProjectReturns(result1 bool, result2 error)
- func (fake *FakeProject) IsTeamInProjectReturnsOnCall(i int, result1 bool, result2 error)
- type FakeTeam
- func (fake *FakeTeam) ByID(arg1 context.Context, arg2 models.DBTX, arg3 models.TeamID, ...) (*models.Team, error)
- func (fake *FakeTeam) ByIDArgsForCall(i int) (context.Context, models.DBTX, models.TeamID, []models.TeamSelectConfigOption)
- func (fake *FakeTeam) ByIDCallCount() int
- func (fake *FakeTeam) ByIDCalls(...)
- func (fake *FakeTeam) ByIDReturns(result1 *models.Team, result2 error)
- func (fake *FakeTeam) ByIDReturnsOnCall(i int, result1 *models.Team, result2 error)
- func (fake *FakeTeam) ByName(arg1 context.Context, arg2 models.DBTX, arg3 string, arg4 models.ProjectID, ...) (*models.Team, error)
- func (fake *FakeTeam) ByNameArgsForCall(i int) (context.Context, models.DBTX, string, models.ProjectID, ...)
- func (fake *FakeTeam) ByNameCallCount() int
- func (fake *FakeTeam) ByNameCalls(...)
- func (fake *FakeTeam) ByNameReturns(result1 *models.Team, result2 error)
- func (fake *FakeTeam) ByNameReturnsOnCall(i int, result1 *models.Team, result2 error)
- func (fake *FakeTeam) Create(arg1 context.Context, arg2 models.DBTX, arg3 *models.TeamCreateParams) (*models.Team, error)
- func (fake *FakeTeam) CreateArgsForCall(i int) (context.Context, models.DBTX, *models.TeamCreateParams)
- func (fake *FakeTeam) CreateCallCount() int
- func (fake *FakeTeam) CreateCalls(...)
- func (fake *FakeTeam) CreateReturns(result1 *models.Team, result2 error)
- func (fake *FakeTeam) CreateReturnsOnCall(i int, result1 *models.Team, result2 error)
- func (fake *FakeTeam) Delete(arg1 context.Context, arg2 models.DBTX, arg3 models.TeamID) (*models.Team, error)
- func (fake *FakeTeam) DeleteArgsForCall(i int) (context.Context, models.DBTX, models.TeamID)
- func (fake *FakeTeam) DeleteCallCount() int
- func (fake *FakeTeam) DeleteCalls(stub func(context.Context, models.DBTX, models.TeamID) (*models.Team, error))
- func (fake *FakeTeam) DeleteReturns(result1 *models.Team, result2 error)
- func (fake *FakeTeam) DeleteReturnsOnCall(i int, result1 *models.Team, result2 error)
- func (fake *FakeTeam) Invocations() map[string][][]interface{}
- func (fake *FakeTeam) Update(arg1 context.Context, arg2 models.DBTX, arg3 models.TeamID, ...) (*models.Team, error)
- func (fake *FakeTeam) UpdateArgsForCall(i int) (context.Context, models.DBTX, models.TeamID, *models.TeamUpdateParams)
- func (fake *FakeTeam) UpdateCallCount() int
- func (fake *FakeTeam) UpdateCalls(...)
- func (fake *FakeTeam) UpdateReturns(result1 *models.Team, result2 error)
- func (fake *FakeTeam) UpdateReturnsOnCall(i int, result1 *models.Team, result2 error)
- type FakeUser
- func (fake *FakeUser) ByAPIKey(arg1 context.Context, arg2 models.DBTX, arg3 string) (*models.User, error)
- func (fake *FakeUser) ByAPIKeyArgsForCall(i int) (context.Context, models.DBTX, string)
- func (fake *FakeUser) ByAPIKeyCallCount() int
- func (fake *FakeUser) ByAPIKeyCalls(stub func(context.Context, models.DBTX, string) (*models.User, error))
- func (fake *FakeUser) ByAPIKeyReturns(result1 *models.User, result2 error)
- func (fake *FakeUser) ByAPIKeyReturnsOnCall(i int, result1 *models.User, result2 error)
- func (fake *FakeUser) ByEmail(arg1 context.Context, arg2 models.DBTX, arg3 string, ...) (*models.User, error)
- func (fake *FakeUser) ByEmailArgsForCall(i int) (context.Context, models.DBTX, string, []models.UserSelectConfigOption)
- func (fake *FakeUser) ByEmailCallCount() int
- func (fake *FakeUser) ByEmailCalls(...)
- func (fake *FakeUser) ByEmailReturns(result1 *models.User, result2 error)
- func (fake *FakeUser) ByEmailReturnsOnCall(i int, result1 *models.User, result2 error)
- func (fake *FakeUser) ByExternalID(arg1 context.Context, arg2 models.DBTX, arg3 string, ...) (*models.User, error)
- func (fake *FakeUser) ByExternalIDArgsForCall(i int) (context.Context, models.DBTX, string, []models.UserSelectConfigOption)
- func (fake *FakeUser) ByExternalIDCallCount() int
- func (fake *FakeUser) ByExternalIDCalls(...)
- func (fake *FakeUser) ByExternalIDReturns(result1 *models.User, result2 error)
- func (fake *FakeUser) ByExternalIDReturnsOnCall(i int, result1 *models.User, result2 error)
- func (fake *FakeUser) ByID(arg1 context.Context, arg2 models.DBTX, arg3 models.UserID, ...) (*models.User, error)
- func (fake *FakeUser) ByIDArgsForCall(i int) (context.Context, models.DBTX, models.UserID, []models.UserSelectConfigOption)
- func (fake *FakeUser) ByIDCallCount() int
- func (fake *FakeUser) ByIDCalls(...)
- func (fake *FakeUser) ByIDReturns(result1 *models.User, result2 error)
- func (fake *FakeUser) ByIDReturnsOnCall(i int, result1 *models.User, result2 error)
- func (fake *FakeUser) ByProject(arg1 context.Context, arg2 models.DBTX, arg3 models.ProjectID) ([]models.User, error)
- func (fake *FakeUser) ByProjectArgsForCall(i int) (context.Context, models.DBTX, models.ProjectID)
- func (fake *FakeUser) ByProjectCallCount() int
- func (fake *FakeUser) ByProjectCalls(...)
- func (fake *FakeUser) ByProjectReturns(result1 []models.User, result2 error)
- func (fake *FakeUser) ByProjectReturnsOnCall(i int, result1 []models.User, result2 error)
- func (fake *FakeUser) ByTeam(arg1 context.Context, arg2 models.DBTX, arg3 models.TeamID) ([]models.User, error)
- func (fake *FakeUser) ByTeamArgsForCall(i int) (context.Context, models.DBTX, models.TeamID)
- func (fake *FakeUser) ByTeamCallCount() int
- func (fake *FakeUser) ByTeamCalls(stub func(context.Context, models.DBTX, models.TeamID) ([]models.User, error))
- func (fake *FakeUser) ByTeamReturns(result1 []models.User, result2 error)
- func (fake *FakeUser) ByTeamReturnsOnCall(i int, result1 []models.User, result2 error)
- func (fake *FakeUser) ByUsername(arg1 context.Context, arg2 models.DBTX, arg3 string, ...) (*models.User, error)
- func (fake *FakeUser) ByUsernameArgsForCall(i int) (context.Context, models.DBTX, string, []models.UserSelectConfigOption)
- func (fake *FakeUser) ByUsernameCallCount() int
- func (fake *FakeUser) ByUsernameCalls(...)
- func (fake *FakeUser) ByUsernameReturns(result1 *models.User, result2 error)
- func (fake *FakeUser) ByUsernameReturnsOnCall(i int, result1 *models.User, result2 error)
- func (fake *FakeUser) Create(arg1 context.Context, arg2 models.DBTX, arg3 *models.UserCreateParams) (*models.User, error)
- func (fake *FakeUser) CreateAPIKey(arg1 context.Context, arg2 models.DBTX, arg3 *models.User) (*models.UserAPIKey, error)
- func (fake *FakeUser) CreateAPIKeyArgsForCall(i int) (context.Context, models.DBTX, *models.User)
- func (fake *FakeUser) CreateAPIKeyCallCount() int
- func (fake *FakeUser) CreateAPIKeyCalls(...)
- func (fake *FakeUser) CreateAPIKeyReturns(result1 *models.UserAPIKey, result2 error)
- func (fake *FakeUser) CreateAPIKeyReturnsOnCall(i int, result1 *models.UserAPIKey, result2 error)
- func (fake *FakeUser) CreateArgsForCall(i int) (context.Context, models.DBTX, *models.UserCreateParams)
- func (fake *FakeUser) CreateCallCount() int
- func (fake *FakeUser) CreateCalls(...)
- func (fake *FakeUser) CreateReturns(result1 *models.User, result2 error)
- func (fake *FakeUser) CreateReturnsOnCall(i int, result1 *models.User, result2 error)
- func (fake *FakeUser) Delete(arg1 context.Context, arg2 models.DBTX, arg3 models.UserID) (*models.User, error)
- func (fake *FakeUser) DeleteAPIKey(arg1 context.Context, arg2 models.DBTX, arg3 string) (*models.UserAPIKey, error)
- func (fake *FakeUser) DeleteAPIKeyArgsForCall(i int) (context.Context, models.DBTX, string)
- func (fake *FakeUser) DeleteAPIKeyCallCount() int
- func (fake *FakeUser) DeleteAPIKeyCalls(stub func(context.Context, models.DBTX, string) (*models.UserAPIKey, error))
- func (fake *FakeUser) DeleteAPIKeyReturns(result1 *models.UserAPIKey, result2 error)
- func (fake *FakeUser) DeleteAPIKeyReturnsOnCall(i int, result1 *models.UserAPIKey, result2 error)
- func (fake *FakeUser) DeleteArgsForCall(i int) (context.Context, models.DBTX, models.UserID)
- func (fake *FakeUser) DeleteCallCount() int
- func (fake *FakeUser) DeleteCalls(stub func(context.Context, models.DBTX, models.UserID) (*models.User, error))
- func (fake *FakeUser) DeleteReturns(result1 *models.User, result2 error)
- func (fake *FakeUser) DeleteReturnsOnCall(i int, result1 *models.User, result2 error)
- func (fake *FakeUser) Invocations() map[string][][]interface{}
- func (fake *FakeUser) Paginated(arg1 context.Context, arg2 models.DBTX, arg3 repos.GetPaginatedUsersParams) ([]models.User, error)
- func (fake *FakeUser) PaginatedArgsForCall(i int) (context.Context, models.DBTX, repos.GetPaginatedUsersParams)
- func (fake *FakeUser) PaginatedCallCount() int
- func (fake *FakeUser) PaginatedCalls(...)
- func (fake *FakeUser) PaginatedReturns(result1 []models.User, result2 error)
- func (fake *FakeUser) PaginatedReturnsOnCall(i int, result1 []models.User, result2 error)
- func (fake *FakeUser) Update(arg1 context.Context, arg2 models.DBTX, arg3 models.UserID, ...) (*models.User, error)
- func (fake *FakeUser) UpdateArgsForCall(i int) (context.Context, models.DBTX, models.UserID, *models.UserUpdateParams)
- func (fake *FakeUser) UpdateCallCount() int
- func (fake *FakeUser) UpdateCalls(...)
- func (fake *FakeUser) UpdateReturns(result1 *models.User, result2 error)
- func (fake *FakeUser) UpdateReturnsOnCall(i int, result1 *models.User, result2 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNotification ¶
type FakeNotification struct { CreateStub func(context.Context, models.DBTX, *models.NotificationCreateParams) (*models.UserNotification, error) DeleteStub func(context.Context, models.DBTX, models.NotificationID) (*models.Notification, error) LatestNotificationsStub func(context.Context, models.DBTX, *models.GetUserNotificationsParams) ([]models.GetUserNotificationsRow, error) PaginatedUserNotificationsStub func(context.Context, models.DBTX, models.UserID, models.GetPaginatedNotificationsParams) ([]models.UserNotification, error) // contains filtered or unexported fields }
func NewFakeNotification ¶
func NewFakeNotification(notifications ...*models.Notification) *FakeNotification
NewFakeNotification returns a mock for the Notification repository, initializing it with copies of the passed notifications.
func (*FakeNotification) Create ¶
func (fake *FakeNotification) Create(arg1 context.Context, arg2 models.DBTX, arg3 *models.NotificationCreateParams) (*models.UserNotification, error)
func (*FakeNotification) CreateArgsForCall ¶
func (fake *FakeNotification) CreateArgsForCall(i int) (context.Context, models.DBTX, *models.NotificationCreateParams)
func (*FakeNotification) CreateCallCount ¶
func (fake *FakeNotification) CreateCallCount() int
func (*FakeNotification) CreateCalls ¶
func (fake *FakeNotification) CreateCalls(stub func(context.Context, models.DBTX, *models.NotificationCreateParams) (*models.UserNotification, error))
func (*FakeNotification) CreateReturns ¶
func (fake *FakeNotification) CreateReturns(result1 *models.UserNotification, result2 error)
func (*FakeNotification) CreateReturnsOnCall ¶
func (fake *FakeNotification) CreateReturnsOnCall(i int, result1 *models.UserNotification, result2 error)
func (*FakeNotification) Delete ¶
func (fake *FakeNotification) Delete(arg1 context.Context, arg2 models.DBTX, arg3 models.NotificationID) (*models.Notification, error)
func (*FakeNotification) DeleteArgsForCall ¶
func (fake *FakeNotification) DeleteArgsForCall(i int) (context.Context, models.DBTX, models.NotificationID)
func (*FakeNotification) DeleteCallCount ¶
func (fake *FakeNotification) DeleteCallCount() int
func (*FakeNotification) DeleteCalls ¶
func (fake *FakeNotification) DeleteCalls(stub func(context.Context, models.DBTX, models.NotificationID) (*models.Notification, error))
func (*FakeNotification) DeleteReturns ¶
func (fake *FakeNotification) DeleteReturns(result1 *models.Notification, result2 error)
func (*FakeNotification) DeleteReturnsOnCall ¶
func (fake *FakeNotification) DeleteReturnsOnCall(i int, result1 *models.Notification, result2 error)
func (*FakeNotification) Invocations ¶
func (fake *FakeNotification) Invocations() map[string][][]interface{}
func (*FakeNotification) LatestNotifications ¶
func (fake *FakeNotification) LatestNotifications(arg1 context.Context, arg2 models.DBTX, arg3 *models.GetUserNotificationsParams) ([]models.GetUserNotificationsRow, error)
func (*FakeNotification) LatestNotificationsArgsForCall ¶
func (fake *FakeNotification) LatestNotificationsArgsForCall(i int) (context.Context, models.DBTX, *models.GetUserNotificationsParams)
func (*FakeNotification) LatestNotificationsCallCount ¶
func (fake *FakeNotification) LatestNotificationsCallCount() int
func (*FakeNotification) LatestNotificationsCalls ¶
func (fake *FakeNotification) LatestNotificationsCalls(stub func(context.Context, models.DBTX, *models.GetUserNotificationsParams) ([]models.GetUserNotificationsRow, error))
func (*FakeNotification) LatestNotificationsReturns ¶
func (fake *FakeNotification) LatestNotificationsReturns(result1 []models.GetUserNotificationsRow, result2 error)
func (*FakeNotification) LatestNotificationsReturnsOnCall ¶
func (fake *FakeNotification) LatestNotificationsReturnsOnCall(i int, result1 []models.GetUserNotificationsRow, result2 error)
func (*FakeNotification) PaginatedUserNotifications ¶
func (fake *FakeNotification) PaginatedUserNotifications(arg1 context.Context, arg2 models.DBTX, arg3 models.UserID, arg4 models.GetPaginatedNotificationsParams) ([]models.UserNotification, error)
func (*FakeNotification) PaginatedUserNotificationsArgsForCall ¶
func (fake *FakeNotification) PaginatedUserNotificationsArgsForCall(i int) (context.Context, models.DBTX, models.UserID, models.GetPaginatedNotificationsParams)
func (*FakeNotification) PaginatedUserNotificationsCallCount ¶
func (fake *FakeNotification) PaginatedUserNotificationsCallCount() int
func (*FakeNotification) PaginatedUserNotificationsCalls ¶
func (fake *FakeNotification) PaginatedUserNotificationsCalls(stub func(context.Context, models.DBTX, models.UserID, models.GetPaginatedNotificationsParams) ([]models.UserNotification, error))
func (*FakeNotification) PaginatedUserNotificationsReturns ¶
func (fake *FakeNotification) PaginatedUserNotificationsReturns(result1 []models.UserNotification, result2 error)
func (*FakeNotification) PaginatedUserNotificationsReturnsOnCall ¶
func (fake *FakeNotification) PaginatedUserNotificationsReturnsOnCall(i int, result1 []models.UserNotification, result2 error)
type FakeProject ¶
type FakeProject struct { ByIDStub func(context.Context, models.DBTX, models.ProjectID, ...models.ProjectSelectConfigOption) (*models.Project, error) ByNameStub func(context.Context, models.DBTX, models.ProjectName, ...models.ProjectSelectConfigOption) (*models.Project, error) IsTeamInProjectStub func(context.Context, models.DBTX, models.IsTeamInProjectParams) (bool, error) // contains filtered or unexported fields }
func (*FakeProject) ByIDArgsForCall ¶
func (fake *FakeProject) ByIDArgsForCall(i int) (context.Context, models.DBTX, models.ProjectID, []models.ProjectSelectConfigOption)
func (*FakeProject) ByIDCallCount ¶
func (fake *FakeProject) ByIDCallCount() int
func (*FakeProject) ByIDReturns ¶
func (fake *FakeProject) ByIDReturns(result1 *models.Project, result2 error)
func (*FakeProject) ByIDReturnsOnCall ¶
func (fake *FakeProject) ByIDReturnsOnCall(i int, result1 *models.Project, result2 error)
func (*FakeProject) ByName ¶
func (fake *FakeProject) ByName(arg1 context.Context, arg2 models.DBTX, arg3 models.ProjectName, arg4 ...models.ProjectSelectConfigOption) (*models.Project, error)
func (*FakeProject) ByNameArgsForCall ¶
func (fake *FakeProject) ByNameArgsForCall(i int) (context.Context, models.DBTX, models.ProjectName, []models.ProjectSelectConfigOption)
func (*FakeProject) ByNameCallCount ¶
func (fake *FakeProject) ByNameCallCount() int
func (*FakeProject) ByNameCalls ¶
func (fake *FakeProject) ByNameCalls(stub func(context.Context, models.DBTX, models.ProjectName, ...models.ProjectSelectConfigOption) (*models.Project, error))
func (*FakeProject) ByNameReturns ¶
func (fake *FakeProject) ByNameReturns(result1 *models.Project, result2 error)
func (*FakeProject) ByNameReturnsOnCall ¶
func (fake *FakeProject) ByNameReturnsOnCall(i int, result1 *models.Project, result2 error)
func (*FakeProject) Invocations ¶
func (fake *FakeProject) Invocations() map[string][][]interface{}
func (*FakeProject) IsTeamInProject ¶
func (fake *FakeProject) IsTeamInProject(arg1 context.Context, arg2 models.DBTX, arg3 models.IsTeamInProjectParams) (bool, error)
func (*FakeProject) IsTeamInProjectArgsForCall ¶
func (fake *FakeProject) IsTeamInProjectArgsForCall(i int) (context.Context, models.DBTX, models.IsTeamInProjectParams)
func (*FakeProject) IsTeamInProjectCallCount ¶
func (fake *FakeProject) IsTeamInProjectCallCount() int
func (*FakeProject) IsTeamInProjectCalls ¶
func (fake *FakeProject) IsTeamInProjectCalls(stub func(context.Context, models.DBTX, models.IsTeamInProjectParams) (bool, error))
func (*FakeProject) IsTeamInProjectReturns ¶
func (fake *FakeProject) IsTeamInProjectReturns(result1 bool, result2 error)
func (*FakeProject) IsTeamInProjectReturnsOnCall ¶
func (fake *FakeProject) IsTeamInProjectReturnsOnCall(i int, result1 bool, result2 error)
type FakeTeam ¶
type FakeTeam struct { ByIDStub func(context.Context, models.DBTX, models.TeamID, ...models.TeamSelectConfigOption) (*models.Team, error) ByNameStub func(context.Context, models.DBTX, string, models.ProjectID, ...models.TeamSelectConfigOption) (*models.Team, error) CreateStub func(context.Context, models.DBTX, *models.TeamCreateParams) (*models.Team, error) DeleteStub func(context.Context, models.DBTX, models.TeamID) (*models.Team, error) UpdateStub func(context.Context, models.DBTX, models.TeamID, *models.TeamUpdateParams) (*models.Team, error) // contains filtered or unexported fields }
func (*FakeTeam) ByIDArgsForCall ¶
func (*FakeTeam) ByIDCallCount ¶
func (*FakeTeam) ByIDReturns ¶
func (*FakeTeam) ByIDReturnsOnCall ¶
func (*FakeTeam) ByNameArgsForCall ¶
func (*FakeTeam) ByNameCallCount ¶
func (*FakeTeam) ByNameCalls ¶
func (*FakeTeam) ByNameReturns ¶
func (*FakeTeam) ByNameReturnsOnCall ¶
func (*FakeTeam) CreateArgsForCall ¶
func (*FakeTeam) CreateCallCount ¶
func (*FakeTeam) CreateCalls ¶
func (*FakeTeam) CreateReturns ¶
func (*FakeTeam) CreateReturnsOnCall ¶
func (*FakeTeam) DeleteArgsForCall ¶
func (*FakeTeam) DeleteCallCount ¶
func (*FakeTeam) DeleteCalls ¶
func (*FakeTeam) DeleteReturns ¶
func (*FakeTeam) DeleteReturnsOnCall ¶
func (*FakeTeam) Invocations ¶
func (*FakeTeam) UpdateArgsForCall ¶
func (*FakeTeam) UpdateCallCount ¶
func (*FakeTeam) UpdateCalls ¶
func (*FakeTeam) UpdateReturns ¶
type FakeUser ¶
type FakeUser struct { ByAPIKeyStub func(context.Context, models.DBTX, string) (*models.User, error) ByEmailStub func(context.Context, models.DBTX, string, ...models.UserSelectConfigOption) (*models.User, error) ByExternalIDStub func(context.Context, models.DBTX, string, ...models.UserSelectConfigOption) (*models.User, error) ByIDStub func(context.Context, models.DBTX, models.UserID, ...models.UserSelectConfigOption) (*models.User, error) ByProjectStub func(context.Context, models.DBTX, models.ProjectID) ([]models.User, error) ByTeamStub func(context.Context, models.DBTX, models.TeamID) ([]models.User, error) ByUsernameStub func(context.Context, models.DBTX, string, ...models.UserSelectConfigOption) (*models.User, error) CreateStub func(context.Context, models.DBTX, *models.UserCreateParams) (*models.User, error) CreateAPIKeyStub func(context.Context, models.DBTX, *models.User) (*models.UserAPIKey, error) DeleteStub func(context.Context, models.DBTX, models.UserID) (*models.User, error) DeleteAPIKeyStub func(context.Context, models.DBTX, string) (*models.UserAPIKey, error) PaginatedStub func(context.Context, models.DBTX, repos.GetPaginatedUsersParams) ([]models.User, error) UpdateStub func(context.Context, models.DBTX, models.UserID, *models.UserUpdateParams) (*models.User, error) // contains filtered or unexported fields }
func (*FakeUser) ByAPIKeyArgsForCall ¶
func (*FakeUser) ByAPIKeyCallCount ¶
func (*FakeUser) ByAPIKeyCalls ¶
func (*FakeUser) ByAPIKeyReturns ¶
func (*FakeUser) ByAPIKeyReturnsOnCall ¶
func (*FakeUser) ByEmailArgsForCall ¶
func (*FakeUser) ByEmailCallCount ¶
func (*FakeUser) ByEmailCalls ¶
func (*FakeUser) ByEmailReturns ¶
func (*FakeUser) ByEmailReturnsOnCall ¶
func (*FakeUser) ByExternalID ¶
func (*FakeUser) ByExternalIDArgsForCall ¶
func (*FakeUser) ByExternalIDCallCount ¶
func (*FakeUser) ByExternalIDCalls ¶
func (*FakeUser) ByExternalIDReturns ¶
func (*FakeUser) ByExternalIDReturnsOnCall ¶
func (*FakeUser) ByIDArgsForCall ¶
func (*FakeUser) ByIDCallCount ¶
func (*FakeUser) ByIDReturns ¶
func (*FakeUser) ByIDReturnsOnCall ¶
func (*FakeUser) ByProjectArgsForCall ¶
func (*FakeUser) ByProjectCallCount ¶
func (*FakeUser) ByProjectCalls ¶
func (*FakeUser) ByProjectReturns ¶
func (*FakeUser) ByProjectReturnsOnCall ¶
func (*FakeUser) ByTeamArgsForCall ¶
func (*FakeUser) ByTeamCallCount ¶
func (*FakeUser) ByTeamCalls ¶
func (*FakeUser) ByTeamReturns ¶
func (*FakeUser) ByTeamReturnsOnCall ¶
func (*FakeUser) ByUsername ¶
func (*FakeUser) ByUsernameArgsForCall ¶
func (*FakeUser) ByUsernameCallCount ¶
func (*FakeUser) ByUsernameCalls ¶
func (*FakeUser) ByUsernameReturns ¶
func (*FakeUser) ByUsernameReturnsOnCall ¶
func (*FakeUser) CreateAPIKey ¶
func (*FakeUser) CreateAPIKeyArgsForCall ¶
func (*FakeUser) CreateAPIKeyCallCount ¶
func (*FakeUser) CreateAPIKeyCalls ¶
func (*FakeUser) CreateAPIKeyReturns ¶
func (fake *FakeUser) CreateAPIKeyReturns(result1 *models.UserAPIKey, result2 error)
func (*FakeUser) CreateAPIKeyReturnsOnCall ¶
func (fake *FakeUser) CreateAPIKeyReturnsOnCall(i int, result1 *models.UserAPIKey, result2 error)
func (*FakeUser) CreateArgsForCall ¶
func (*FakeUser) CreateCallCount ¶
func (*FakeUser) CreateCalls ¶
func (*FakeUser) CreateReturns ¶
func (*FakeUser) CreateReturnsOnCall ¶
func (*FakeUser) DeleteAPIKey ¶
func (*FakeUser) DeleteAPIKeyArgsForCall ¶
func (*FakeUser) DeleteAPIKeyCallCount ¶
func (*FakeUser) DeleteAPIKeyCalls ¶
func (*FakeUser) DeleteAPIKeyReturns ¶
func (fake *FakeUser) DeleteAPIKeyReturns(result1 *models.UserAPIKey, result2 error)
func (*FakeUser) DeleteAPIKeyReturnsOnCall ¶
func (fake *FakeUser) DeleteAPIKeyReturnsOnCall(i int, result1 *models.UserAPIKey, result2 error)
func (*FakeUser) DeleteArgsForCall ¶
func (*FakeUser) DeleteCallCount ¶
func (*FakeUser) DeleteCalls ¶
func (*FakeUser) DeleteReturns ¶
func (*FakeUser) DeleteReturnsOnCall ¶
func (*FakeUser) Invocations ¶
func (*FakeUser) PaginatedArgsForCall ¶
func (*FakeUser) PaginatedCallCount ¶
func (*FakeUser) PaginatedCalls ¶
func (*FakeUser) PaginatedReturns ¶
func (*FakeUser) PaginatedReturnsOnCall ¶
func (*FakeUser) UpdateArgsForCall ¶
func (*FakeUser) UpdateCallCount ¶
func (*FakeUser) UpdateCalls ¶
func (*FakeUser) UpdateReturns ¶
Click to show internal directories.
Click to hide internal directories.