Documentation
¶
Index ¶
- type AccountContractCreateFunc
- func (f *AccountContractCreateFunc) History() []AccountContractCreateFuncCall
- func (f *AccountContractCreateFunc) PushHook(...)
- func (f *AccountContractCreateFunc) PushReturn(r0 *beans.Account, r1 error)
- func (f *AccountContractCreateFunc) SetDefaultHook(...)
- func (f *AccountContractCreateFunc) SetDefaultReturn(r0 *beans.Account, r1 error)
- type AccountContractCreateFuncCall
- type AccountContractGetAllFunc
- func (f *AccountContractGetAllFunc) History() []AccountContractGetAllFuncCall
- func (f *AccountContractGetAllFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext) ([]*beans.Account, error))
- func (f *AccountContractGetAllFunc) PushReturn(r0 []*beans.Account, r1 error)
- func (f *AccountContractGetAllFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext) ([]*beans.Account, error))
- func (f *AccountContractGetAllFunc) SetDefaultReturn(r0 []*beans.Account, r1 error)
- type AccountContractGetAllFuncCall
- type AccountRepositoryCreateFunc
- func (f *AccountRepositoryCreateFunc) History() []AccountRepositoryCreateFuncCall
- func (f *AccountRepositoryCreateFunc) PushHook(hook func(context.Context, beans.ID, beans.Name, beans.ID) error)
- func (f *AccountRepositoryCreateFunc) PushReturn(r0 error)
- func (f *AccountRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, beans.ID, beans.Name, beans.ID) error)
- func (f *AccountRepositoryCreateFunc) SetDefaultReturn(r0 error)
- type AccountRepositoryCreateFuncCall
- type AccountRepositoryGetForBudgetFunc
- func (f *AccountRepositoryGetForBudgetFunc) History() []AccountRepositoryGetForBudgetFuncCall
- func (f *AccountRepositoryGetForBudgetFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.Account, error))
- func (f *AccountRepositoryGetForBudgetFunc) PushReturn(r0 []*beans.Account, r1 error)
- func (f *AccountRepositoryGetForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.Account, error))
- func (f *AccountRepositoryGetForBudgetFunc) SetDefaultReturn(r0 []*beans.Account, r1 error)
- type AccountRepositoryGetForBudgetFuncCall
- type AccountRepositoryGetFunc
- func (f *AccountRepositoryGetFunc) History() []AccountRepositoryGetFuncCall
- func (f *AccountRepositoryGetFunc) PushHook(hook func(context.Context, beans.ID) (*beans.Account, error))
- func (f *AccountRepositoryGetFunc) PushReturn(r0 *beans.Account, r1 error)
- func (f *AccountRepositoryGetFunc) SetDefaultHook(hook func(context.Context, beans.ID) (*beans.Account, error))
- func (f *AccountRepositoryGetFunc) SetDefaultReturn(r0 *beans.Account, r1 error)
- type AccountRepositoryGetFuncCall
- type BudgetContractCreateFunc
- func (f *BudgetContractCreateFunc) History() []BudgetContractCreateFuncCall
- func (f *BudgetContractCreateFunc) PushHook(...)
- func (f *BudgetContractCreateFunc) PushReturn(r0 *beans.Budget, r1 error)
- func (f *BudgetContractCreateFunc) SetDefaultHook(...)
- func (f *BudgetContractCreateFunc) SetDefaultReturn(r0 *beans.Budget, r1 error)
- type BudgetContractCreateFuncCall
- type BudgetContractGetAllFunc
- func (f *BudgetContractGetAllFunc) History() []BudgetContractGetAllFuncCall
- func (f *BudgetContractGetAllFunc) PushHook(hook func(context.Context, *beans.AuthContext) ([]*beans.Budget, error))
- func (f *BudgetContractGetAllFunc) PushReturn(r0 []*beans.Budget, r1 error)
- func (f *BudgetContractGetAllFunc) SetDefaultHook(hook func(context.Context, *beans.AuthContext) ([]*beans.Budget, error))
- func (f *BudgetContractGetAllFunc) SetDefaultReturn(r0 []*beans.Budget, r1 error)
- type BudgetContractGetAllFuncCall
- type BudgetContractGetFunc
- func (f *BudgetContractGetFunc) History() []BudgetContractGetFuncCall
- func (f *BudgetContractGetFunc) PushHook(...)
- func (f *BudgetContractGetFunc) PushReturn(r0 *beans.Budget, r1 error)
- func (f *BudgetContractGetFunc) SetDefaultHook(...)
- func (f *BudgetContractGetFunc) SetDefaultReturn(r0 *beans.Budget, r1 error)
- type BudgetContractGetFuncCall
- type BudgetRepositoryCreateFunc
- func (f *BudgetRepositoryCreateFunc) History() []BudgetRepositoryCreateFuncCall
- func (f *BudgetRepositoryCreateFunc) PushHook(hook func(context.Context, beans.Tx, beans.ID, beans.Name, beans.ID) error)
- func (f *BudgetRepositoryCreateFunc) PushReturn(r0 error)
- func (f *BudgetRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, beans.Tx, beans.ID, beans.Name, beans.ID) error)
- func (f *BudgetRepositoryCreateFunc) SetDefaultReturn(r0 error)
- type BudgetRepositoryCreateFuncCall
- type BudgetRepositoryGetBudgetsForUserFunc
- func (f *BudgetRepositoryGetBudgetsForUserFunc) History() []BudgetRepositoryGetBudgetsForUserFuncCall
- func (f *BudgetRepositoryGetBudgetsForUserFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.Budget, error))
- func (f *BudgetRepositoryGetBudgetsForUserFunc) PushReturn(r0 []*beans.Budget, r1 error)
- func (f *BudgetRepositoryGetBudgetsForUserFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.Budget, error))
- func (f *BudgetRepositoryGetBudgetsForUserFunc) SetDefaultReturn(r0 []*beans.Budget, r1 error)
- type BudgetRepositoryGetBudgetsForUserFuncCall
- type BudgetRepositoryGetFunc
- func (f *BudgetRepositoryGetFunc) History() []BudgetRepositoryGetFuncCall
- func (f *BudgetRepositoryGetFunc) PushHook(hook func(context.Context, beans.ID) (*beans.Budget, error))
- func (f *BudgetRepositoryGetFunc) PushReturn(r0 *beans.Budget, r1 error)
- func (f *BudgetRepositoryGetFunc) SetDefaultHook(hook func(context.Context, beans.ID) (*beans.Budget, error))
- func (f *BudgetRepositoryGetFunc) SetDefaultReturn(r0 *beans.Budget, r1 error)
- type BudgetRepositoryGetFuncCall
- type CategoryContractCreateCategoryFunc
- func (f *CategoryContractCreateCategoryFunc) History() []CategoryContractCreateCategoryFuncCall
- func (f *CategoryContractCreateCategoryFunc) PushHook(...)
- func (f *CategoryContractCreateCategoryFunc) PushReturn(r0 *beans.Category, r1 error)
- func (f *CategoryContractCreateCategoryFunc) SetDefaultHook(...)
- func (f *CategoryContractCreateCategoryFunc) SetDefaultReturn(r0 *beans.Category, r1 error)
- type CategoryContractCreateCategoryFuncCall
- type CategoryContractCreateGroupFunc
- func (f *CategoryContractCreateGroupFunc) History() []CategoryContractCreateGroupFuncCall
- func (f *CategoryContractCreateGroupFunc) PushHook(...)
- func (f *CategoryContractCreateGroupFunc) PushReturn(r0 *beans.CategoryGroup, r1 error)
- func (f *CategoryContractCreateGroupFunc) SetDefaultHook(...)
- func (f *CategoryContractCreateGroupFunc) SetDefaultReturn(r0 *beans.CategoryGroup, r1 error)
- type CategoryContractCreateGroupFuncCall
- type CategoryContractGetAllFunc
- func (f *CategoryContractGetAllFunc) History() []CategoryContractGetAllFuncCall
- func (f *CategoryContractGetAllFunc) PushHook(...)
- func (f *CategoryContractGetAllFunc) PushReturn(r0 []*beans.CategoryGroup, r1 []*beans.Category, r2 error)
- func (f *CategoryContractGetAllFunc) SetDefaultHook(...)
- func (f *CategoryContractGetAllFunc) SetDefaultReturn(r0 []*beans.CategoryGroup, r1 []*beans.Category, r2 error)
- type CategoryContractGetAllFuncCall
- type CategoryRepositoryCreateFunc
- func (f *CategoryRepositoryCreateFunc) History() []CategoryRepositoryCreateFuncCall
- func (f *CategoryRepositoryCreateFunc) PushHook(hook func(context.Context, beans.Tx, *beans.Category) error)
- func (f *CategoryRepositoryCreateFunc) PushReturn(r0 error)
- func (f *CategoryRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, beans.Tx, *beans.Category) error)
- func (f *CategoryRepositoryCreateFunc) SetDefaultReturn(r0 error)
- type CategoryRepositoryCreateFuncCall
- type CategoryRepositoryCreateGroupFunc
- func (f *CategoryRepositoryCreateGroupFunc) History() []CategoryRepositoryCreateGroupFuncCall
- func (f *CategoryRepositoryCreateGroupFunc) PushHook(hook func(context.Context, beans.Tx, *beans.CategoryGroup) error)
- func (f *CategoryRepositoryCreateGroupFunc) PushReturn(r0 error)
- func (f *CategoryRepositoryCreateGroupFunc) SetDefaultHook(hook func(context.Context, beans.Tx, *beans.CategoryGroup) error)
- func (f *CategoryRepositoryCreateGroupFunc) SetDefaultReturn(r0 error)
- type CategoryRepositoryCreateGroupFuncCall
- type CategoryRepositoryGetForBudgetFunc
- func (f *CategoryRepositoryGetForBudgetFunc) History() []CategoryRepositoryGetForBudgetFuncCall
- func (f *CategoryRepositoryGetForBudgetFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.Category, error))
- func (f *CategoryRepositoryGetForBudgetFunc) PushReturn(r0 []*beans.Category, r1 error)
- func (f *CategoryRepositoryGetForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.Category, error))
- func (f *CategoryRepositoryGetForBudgetFunc) SetDefaultReturn(r0 []*beans.Category, r1 error)
- type CategoryRepositoryGetForBudgetFuncCall
- type CategoryRepositoryGetGroupsForBudgetFunc
- func (f *CategoryRepositoryGetGroupsForBudgetFunc) History() []CategoryRepositoryGetGroupsForBudgetFuncCall
- func (f *CategoryRepositoryGetGroupsForBudgetFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.CategoryGroup, error))
- func (f *CategoryRepositoryGetGroupsForBudgetFunc) PushReturn(r0 []*beans.CategoryGroup, r1 error)
- func (f *CategoryRepositoryGetGroupsForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.CategoryGroup, error))
- func (f *CategoryRepositoryGetGroupsForBudgetFunc) SetDefaultReturn(r0 []*beans.CategoryGroup, r1 error)
- type CategoryRepositoryGetGroupsForBudgetFuncCall
- type CategoryRepositoryGetSingleForBudgetFunc
- func (f *CategoryRepositoryGetSingleForBudgetFunc) History() []CategoryRepositoryGetSingleForBudgetFuncCall
- func (f *CategoryRepositoryGetSingleForBudgetFunc) PushHook(hook func(context.Context, beans.ID, beans.ID) (*beans.Category, error))
- func (f *CategoryRepositoryGetSingleForBudgetFunc) PushReturn(r0 *beans.Category, r1 error)
- func (f *CategoryRepositoryGetSingleForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID, beans.ID) (*beans.Category, error))
- func (f *CategoryRepositoryGetSingleForBudgetFunc) SetDefaultReturn(r0 *beans.Category, r1 error)
- type CategoryRepositoryGetSingleForBudgetFuncCall
- type CategoryRepositoryGroupExistsFunc
- func (f *CategoryRepositoryGroupExistsFunc) History() []CategoryRepositoryGroupExistsFuncCall
- func (f *CategoryRepositoryGroupExistsFunc) PushHook(hook func(context.Context, beans.ID, beans.ID) (bool, error))
- func (f *CategoryRepositoryGroupExistsFunc) PushReturn(r0 bool, r1 error)
- func (f *CategoryRepositoryGroupExistsFunc) SetDefaultHook(hook func(context.Context, beans.ID, beans.ID) (bool, error))
- func (f *CategoryRepositoryGroupExistsFunc) SetDefaultReturn(r0 bool, r1 error)
- type CategoryRepositoryGroupExistsFuncCall
- type CountableLengthFunc
- type CountableLengthFuncCall
- type EmptiableEmptyFunc
- type EmptiableEmptyFuncCall
- type ErrorBeansErrorFunc
- func (f *ErrorBeansErrorFunc) History() []ErrorBeansErrorFuncCall
- func (f *ErrorBeansErrorFunc) PushHook(hook func() (string, string))
- func (f *ErrorBeansErrorFunc) PushReturn(r0 string, r1 string)
- func (f *ErrorBeansErrorFunc) SetDefaultHook(hook func() (string, string))
- func (f *ErrorBeansErrorFunc) SetDefaultReturn(r0 string, r1 string)
- type ErrorBeansErrorFuncCall
- type ErrorErrorFunc
- type ErrorErrorFuncCall
- type MockAccountContract
- type MockAccountRepository
- func (m *MockAccountRepository) Create(v0 context.Context, v1 beans.ID, v2 beans.Name, v3 beans.ID) error
- func (m *MockAccountRepository) Get(v0 context.Context, v1 beans.ID) (*beans.Account, error)
- func (m *MockAccountRepository) GetForBudget(v0 context.Context, v1 beans.ID) ([]*beans.Account, error)
- type MockBudgetContract
- func (m *MockBudgetContract) Create(v0 context.Context, v1 *beans.AuthContext, v2 beans.Name) (*beans.Budget, error)
- func (m *MockBudgetContract) Get(v0 context.Context, v1 *beans.AuthContext, v2 beans.ID) (*beans.Budget, error)
- func (m *MockBudgetContract) GetAll(v0 context.Context, v1 *beans.AuthContext) ([]*beans.Budget, error)
- type MockBudgetRepository
- func (m *MockBudgetRepository) Create(v0 context.Context, v1 beans.Tx, v2 beans.ID, v3 beans.Name, v4 beans.ID) error
- func (m *MockBudgetRepository) Get(v0 context.Context, v1 beans.ID) (*beans.Budget, error)
- func (m *MockBudgetRepository) GetBudgetsForUser(v0 context.Context, v1 beans.ID) ([]*beans.Budget, error)
- type MockCategoryContract
- func (m *MockCategoryContract) CreateCategory(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.ID, v3 beans.Name) (*beans.Category, error)
- func (m *MockCategoryContract) CreateGroup(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.Name) (*beans.CategoryGroup, error)
- func (m *MockCategoryContract) GetAll(v0 context.Context, v1 *beans.BudgetAuthContext) ([]*beans.CategoryGroup, []*beans.Category, error)
- type MockCategoryRepository
- func (m *MockCategoryRepository) Create(v0 context.Context, v1 beans.Tx, v2 *beans.Category) error
- func (m *MockCategoryRepository) CreateGroup(v0 context.Context, v1 beans.Tx, v2 *beans.CategoryGroup) error
- func (m *MockCategoryRepository) GetForBudget(v0 context.Context, v1 beans.ID) ([]*beans.Category, error)
- func (m *MockCategoryRepository) GetGroupsForBudget(v0 context.Context, v1 beans.ID) ([]*beans.CategoryGroup, error)
- func (m *MockCategoryRepository) GetSingleForBudget(v0 context.Context, v1 beans.ID, v2 beans.ID) (*beans.Category, error)
- func (m *MockCategoryRepository) GroupExists(v0 context.Context, v1 beans.ID, v2 beans.ID) (bool, error)
- type MockCountable
- type MockEmptiable
- type MockError
- type MockMonthCategoryRepository
- func (m *MockMonthCategoryRepository) Create(v0 context.Context, v1 beans.Tx, v2 *beans.MonthCategory) error
- func (m *MockMonthCategoryRepository) GetAssignedInMonth(v0 context.Context, v1 beans.ID) (beans.Amount, error)
- func (m *MockMonthCategoryRepository) GetForMonth(v0 context.Context, v1 *beans.Month) ([]*beans.MonthCategory, error)
- func (m *MockMonthCategoryRepository) GetOrCreate(v0 context.Context, v1 beans.Tx, v2 beans.ID, v3 beans.ID) (*beans.MonthCategory, error)
- func (m *MockMonthCategoryRepository) UpdateAmount(v0 context.Context, v1 beans.ID, v2 beans.Amount) error
- type MockMonthContract
- func (m *MockMonthContract) GetOrCreate(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.MonthDate) (*beans.Month, []*beans.MonthCategory, beans.Amount, error)
- func (m *MockMonthContract) SetCategoryAmount(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.ID, v3 beans.ID, ...) error
- func (m *MockMonthContract) Update(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.ID, v3 beans.Amount) error
- type MockMonthRepository
- func (m *MockMonthRepository) Create(v0 context.Context, v1 beans.Tx, v2 *beans.Month) error
- func (m *MockMonthRepository) Get(v0 context.Context, v1 beans.ID) (*beans.Month, error)
- func (m *MockMonthRepository) GetForBudget(v0 context.Context, v1 beans.ID) ([]*beans.Month, error)
- func (m *MockMonthRepository) GetOrCreate(v0 context.Context, v1 beans.Tx, v2 beans.ID, v3 beans.MonthDate) (*beans.Month, error)
- func (m *MockMonthRepository) Update(v0 context.Context, v1 *beans.Month) error
- type MockPayeeContract
- type MockPayeeRepository
- type MockSessionRepository
- type MockTransactionContract
- func (m *MockTransactionContract) Create(v0 context.Context, v1 *beans.BudgetAuthContext, ...) (*beans.Transaction, error)
- func (m *MockTransactionContract) GetAll(v0 context.Context, v1 *beans.BudgetAuthContext) ([]*beans.Transaction, error)
- func (m *MockTransactionContract) Update(v0 context.Context, v1 *beans.BudgetAuthContext, ...) error
- type MockTransactionRepository
- func (m *MockTransactionRepository) Create(v0 context.Context, v1 *beans.Transaction) error
- func (m *MockTransactionRepository) Get(v0 context.Context, v1 beans.ID) (*beans.Transaction, error)
- func (m *MockTransactionRepository) GetForBudget(v0 context.Context, v1 beans.ID) ([]*beans.Transaction, error)
- func (m *MockTransactionRepository) GetIncomeBetween(v0 context.Context, v1 beans.ID, v2 beans.Date, v3 beans.Date) (beans.Amount, error)
- func (m *MockTransactionRepository) Update(v0 context.Context, v1 *beans.Transaction) error
- type MockTx
- type MockTxManager
- type MockUserContract
- func (m *MockUserContract) GetMe(v0 context.Context, v1 *beans.AuthContext) (*beans.User, error)
- func (m *MockUserContract) Login(v0 context.Context, v1 beans.Username, v2 beans.Password) (*beans.Session, error)
- func (m *MockUserContract) Logout(v0 context.Context, v1 *beans.AuthContext) error
- func (m *MockUserContract) Register(v0 context.Context, v1 beans.Username, v2 beans.Password) error
- type MockUserRepository
- func (m *MockUserRepository) Create(v0 context.Context, v1 beans.ID, v2 beans.Username, v3 beans.PasswordHash) error
- func (m *MockUserRepository) Exists(v0 context.Context, v1 beans.Username) (bool, error)
- func (m *MockUserRepository) Get(v0 context.Context, v1 beans.ID) (*beans.User, error)
- func (m *MockUserRepository) GetByUsername(v0 context.Context, v1 beans.Username) (*beans.User, error)
- type MockValidatable
- type MonthCategoryRepositoryCreateFunc
- func (f *MonthCategoryRepositoryCreateFunc) History() []MonthCategoryRepositoryCreateFuncCall
- func (f *MonthCategoryRepositoryCreateFunc) PushHook(hook func(context.Context, beans.Tx, *beans.MonthCategory) error)
- func (f *MonthCategoryRepositoryCreateFunc) PushReturn(r0 error)
- func (f *MonthCategoryRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, beans.Tx, *beans.MonthCategory) error)
- func (f *MonthCategoryRepositoryCreateFunc) SetDefaultReturn(r0 error)
- type MonthCategoryRepositoryCreateFuncCall
- type MonthCategoryRepositoryGetAssignedInMonthFunc
- func (f *MonthCategoryRepositoryGetAssignedInMonthFunc) History() []MonthCategoryRepositoryGetAssignedInMonthFuncCall
- func (f *MonthCategoryRepositoryGetAssignedInMonthFunc) PushHook(hook func(context.Context, beans.ID) (beans.Amount, error))
- func (f *MonthCategoryRepositoryGetAssignedInMonthFunc) PushReturn(r0 beans.Amount, r1 error)
- func (f *MonthCategoryRepositoryGetAssignedInMonthFunc) SetDefaultHook(hook func(context.Context, beans.ID) (beans.Amount, error))
- func (f *MonthCategoryRepositoryGetAssignedInMonthFunc) SetDefaultReturn(r0 beans.Amount, r1 error)
- type MonthCategoryRepositoryGetAssignedInMonthFuncCall
- type MonthCategoryRepositoryGetForMonthFunc
- func (f *MonthCategoryRepositoryGetForMonthFunc) History() []MonthCategoryRepositoryGetForMonthFuncCall
- func (f *MonthCategoryRepositoryGetForMonthFunc) PushHook(hook func(context.Context, *beans.Month) ([]*beans.MonthCategory, error))
- func (f *MonthCategoryRepositoryGetForMonthFunc) PushReturn(r0 []*beans.MonthCategory, r1 error)
- func (f *MonthCategoryRepositoryGetForMonthFunc) SetDefaultHook(hook func(context.Context, *beans.Month) ([]*beans.MonthCategory, error))
- func (f *MonthCategoryRepositoryGetForMonthFunc) SetDefaultReturn(r0 []*beans.MonthCategory, r1 error)
- type MonthCategoryRepositoryGetForMonthFuncCall
- type MonthCategoryRepositoryGetOrCreateFunc
- func (f *MonthCategoryRepositoryGetOrCreateFunc) History() []MonthCategoryRepositoryGetOrCreateFuncCall
- func (f *MonthCategoryRepositoryGetOrCreateFunc) PushHook(...)
- func (f *MonthCategoryRepositoryGetOrCreateFunc) PushReturn(r0 *beans.MonthCategory, r1 error)
- func (f *MonthCategoryRepositoryGetOrCreateFunc) SetDefaultHook(...)
- func (f *MonthCategoryRepositoryGetOrCreateFunc) SetDefaultReturn(r0 *beans.MonthCategory, r1 error)
- type MonthCategoryRepositoryGetOrCreateFuncCall
- type MonthCategoryRepositoryUpdateAmountFunc
- func (f *MonthCategoryRepositoryUpdateAmountFunc) History() []MonthCategoryRepositoryUpdateAmountFuncCall
- func (f *MonthCategoryRepositoryUpdateAmountFunc) PushHook(hook func(context.Context, beans.ID, beans.Amount) error)
- func (f *MonthCategoryRepositoryUpdateAmountFunc) PushReturn(r0 error)
- func (f *MonthCategoryRepositoryUpdateAmountFunc) SetDefaultHook(hook func(context.Context, beans.ID, beans.Amount) error)
- func (f *MonthCategoryRepositoryUpdateAmountFunc) SetDefaultReturn(r0 error)
- type MonthCategoryRepositoryUpdateAmountFuncCall
- type MonthContractGetOrCreateFunc
- func (f *MonthContractGetOrCreateFunc) History() []MonthContractGetOrCreateFuncCall
- func (f *MonthContractGetOrCreateFunc) PushHook(...)
- func (f *MonthContractGetOrCreateFunc) PushReturn(r0 *beans.Month, r1 []*beans.MonthCategory, r2 beans.Amount, r3 error)
- func (f *MonthContractGetOrCreateFunc) SetDefaultHook(...)
- func (f *MonthContractGetOrCreateFunc) SetDefaultReturn(r0 *beans.Month, r1 []*beans.MonthCategory, r2 beans.Amount, r3 error)
- type MonthContractGetOrCreateFuncCall
- type MonthContractSetCategoryAmountFunc
- func (f *MonthContractSetCategoryAmountFunc) History() []MonthContractSetCategoryAmountFuncCall
- func (f *MonthContractSetCategoryAmountFunc) PushHook(...)
- func (f *MonthContractSetCategoryAmountFunc) PushReturn(r0 error)
- func (f *MonthContractSetCategoryAmountFunc) SetDefaultHook(...)
- func (f *MonthContractSetCategoryAmountFunc) SetDefaultReturn(r0 error)
- type MonthContractSetCategoryAmountFuncCall
- type MonthContractUpdateFunc
- type MonthContractUpdateFuncCall
- type MonthRepositoryCreateFunc
- func (f *MonthRepositoryCreateFunc) History() []MonthRepositoryCreateFuncCall
- func (f *MonthRepositoryCreateFunc) PushHook(hook func(context.Context, beans.Tx, *beans.Month) error)
- func (f *MonthRepositoryCreateFunc) PushReturn(r0 error)
- func (f *MonthRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, beans.Tx, *beans.Month) error)
- func (f *MonthRepositoryCreateFunc) SetDefaultReturn(r0 error)
- type MonthRepositoryCreateFuncCall
- type MonthRepositoryGetForBudgetFunc
- func (f *MonthRepositoryGetForBudgetFunc) History() []MonthRepositoryGetForBudgetFuncCall
- func (f *MonthRepositoryGetForBudgetFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.Month, error))
- func (f *MonthRepositoryGetForBudgetFunc) PushReturn(r0 []*beans.Month, r1 error)
- func (f *MonthRepositoryGetForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.Month, error))
- func (f *MonthRepositoryGetForBudgetFunc) SetDefaultReturn(r0 []*beans.Month, r1 error)
- type MonthRepositoryGetForBudgetFuncCall
- type MonthRepositoryGetFunc
- func (f *MonthRepositoryGetFunc) History() []MonthRepositoryGetFuncCall
- func (f *MonthRepositoryGetFunc) PushHook(hook func(context.Context, beans.ID) (*beans.Month, error))
- func (f *MonthRepositoryGetFunc) PushReturn(r0 *beans.Month, r1 error)
- func (f *MonthRepositoryGetFunc) SetDefaultHook(hook func(context.Context, beans.ID) (*beans.Month, error))
- func (f *MonthRepositoryGetFunc) SetDefaultReturn(r0 *beans.Month, r1 error)
- type MonthRepositoryGetFuncCall
- type MonthRepositoryGetOrCreateFunc
- func (f *MonthRepositoryGetOrCreateFunc) History() []MonthRepositoryGetOrCreateFuncCall
- func (f *MonthRepositoryGetOrCreateFunc) PushHook(...)
- func (f *MonthRepositoryGetOrCreateFunc) PushReturn(r0 *beans.Month, r1 error)
- func (f *MonthRepositoryGetOrCreateFunc) SetDefaultHook(...)
- func (f *MonthRepositoryGetOrCreateFunc) SetDefaultReturn(r0 *beans.Month, r1 error)
- type MonthRepositoryGetOrCreateFuncCall
- type MonthRepositoryUpdateFunc
- func (f *MonthRepositoryUpdateFunc) History() []MonthRepositoryUpdateFuncCall
- func (f *MonthRepositoryUpdateFunc) PushHook(hook func(context.Context, *beans.Month) error)
- func (f *MonthRepositoryUpdateFunc) PushReturn(r0 error)
- func (f *MonthRepositoryUpdateFunc) SetDefaultHook(hook func(context.Context, *beans.Month) error)
- func (f *MonthRepositoryUpdateFunc) SetDefaultReturn(r0 error)
- type MonthRepositoryUpdateFuncCall
- type PayeeContractCreatePayeeFunc
- func (f *PayeeContractCreatePayeeFunc) History() []PayeeContractCreatePayeeFuncCall
- func (f *PayeeContractCreatePayeeFunc) PushHook(...)
- func (f *PayeeContractCreatePayeeFunc) PushReturn(r0 *beans.Payee, r1 error)
- func (f *PayeeContractCreatePayeeFunc) SetDefaultHook(...)
- func (f *PayeeContractCreatePayeeFunc) SetDefaultReturn(r0 *beans.Payee, r1 error)
- type PayeeContractCreatePayeeFuncCall
- type PayeeContractGetAllFunc
- func (f *PayeeContractGetAllFunc) History() []PayeeContractGetAllFuncCall
- func (f *PayeeContractGetAllFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext) ([]*beans.Payee, error))
- func (f *PayeeContractGetAllFunc) PushReturn(r0 []*beans.Payee, r1 error)
- func (f *PayeeContractGetAllFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext) ([]*beans.Payee, error))
- func (f *PayeeContractGetAllFunc) SetDefaultReturn(r0 []*beans.Payee, r1 error)
- type PayeeContractGetAllFuncCall
- type PayeeRepositoryCreateFunc
- func (f *PayeeRepositoryCreateFunc) History() []PayeeRepositoryCreateFuncCall
- func (f *PayeeRepositoryCreateFunc) PushHook(hook func(context.Context, *beans.Payee) error)
- func (f *PayeeRepositoryCreateFunc) PushReturn(r0 error)
- func (f *PayeeRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, *beans.Payee) error)
- func (f *PayeeRepositoryCreateFunc) SetDefaultReturn(r0 error)
- type PayeeRepositoryCreateFuncCall
- type PayeeRepositoryGetForBudgetFunc
- func (f *PayeeRepositoryGetForBudgetFunc) History() []PayeeRepositoryGetForBudgetFuncCall
- func (f *PayeeRepositoryGetForBudgetFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.Payee, error))
- func (f *PayeeRepositoryGetForBudgetFunc) PushReturn(r0 []*beans.Payee, r1 error)
- func (f *PayeeRepositoryGetForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.Payee, error))
- func (f *PayeeRepositoryGetForBudgetFunc) SetDefaultReturn(r0 []*beans.Payee, r1 error)
- type PayeeRepositoryGetForBudgetFuncCall
- type PayeeRepositoryGetFunc
- func (f *PayeeRepositoryGetFunc) History() []PayeeRepositoryGetFuncCall
- func (f *PayeeRepositoryGetFunc) PushHook(hook func(context.Context, beans.ID) (*beans.Payee, error))
- func (f *PayeeRepositoryGetFunc) PushReturn(r0 *beans.Payee, r1 error)
- func (f *PayeeRepositoryGetFunc) SetDefaultHook(hook func(context.Context, beans.ID) (*beans.Payee, error))
- func (f *PayeeRepositoryGetFunc) SetDefaultReturn(r0 *beans.Payee, r1 error)
- type PayeeRepositoryGetFuncCall
- type SessionRepositoryCreateFunc
- func (f *SessionRepositoryCreateFunc) History() []SessionRepositoryCreateFuncCall
- func (f *SessionRepositoryCreateFunc) PushHook(hook func(beans.ID) (*beans.Session, error))
- func (f *SessionRepositoryCreateFunc) PushReturn(r0 *beans.Session, r1 error)
- func (f *SessionRepositoryCreateFunc) SetDefaultHook(hook func(beans.ID) (*beans.Session, error))
- func (f *SessionRepositoryCreateFunc) SetDefaultReturn(r0 *beans.Session, r1 error)
- type SessionRepositoryCreateFuncCall
- type SessionRepositoryDeleteFunc
- func (f *SessionRepositoryDeleteFunc) History() []SessionRepositoryDeleteFuncCall
- func (f *SessionRepositoryDeleteFunc) PushHook(hook func(beans.SessionID) error)
- func (f *SessionRepositoryDeleteFunc) PushReturn(r0 error)
- func (f *SessionRepositoryDeleteFunc) SetDefaultHook(hook func(beans.SessionID) error)
- func (f *SessionRepositoryDeleteFunc) SetDefaultReturn(r0 error)
- type SessionRepositoryDeleteFuncCall
- type SessionRepositoryGetFunc
- func (f *SessionRepositoryGetFunc) History() []SessionRepositoryGetFuncCall
- func (f *SessionRepositoryGetFunc) PushHook(hook func(beans.SessionID) (*beans.Session, error))
- func (f *SessionRepositoryGetFunc) PushReturn(r0 *beans.Session, r1 error)
- func (f *SessionRepositoryGetFunc) SetDefaultHook(hook func(beans.SessionID) (*beans.Session, error))
- func (f *SessionRepositoryGetFunc) SetDefaultReturn(r0 *beans.Session, r1 error)
- type SessionRepositoryGetFuncCall
- type TransactionContractCreateFunc
- func (f *TransactionContractCreateFunc) History() []TransactionContractCreateFuncCall
- func (f *TransactionContractCreateFunc) PushHook(...)
- func (f *TransactionContractCreateFunc) PushReturn(r0 *beans.Transaction, r1 error)
- func (f *TransactionContractCreateFunc) SetDefaultHook(...)
- func (f *TransactionContractCreateFunc) SetDefaultReturn(r0 *beans.Transaction, r1 error)
- type TransactionContractCreateFuncCall
- type TransactionContractGetAllFunc
- func (f *TransactionContractGetAllFunc) History() []TransactionContractGetAllFuncCall
- func (f *TransactionContractGetAllFunc) PushHook(...)
- func (f *TransactionContractGetAllFunc) PushReturn(r0 []*beans.Transaction, r1 error)
- func (f *TransactionContractGetAllFunc) SetDefaultHook(...)
- func (f *TransactionContractGetAllFunc) SetDefaultReturn(r0 []*beans.Transaction, r1 error)
- type TransactionContractGetAllFuncCall
- type TransactionContractUpdateFunc
- func (f *TransactionContractUpdateFunc) History() []TransactionContractUpdateFuncCall
- func (f *TransactionContractUpdateFunc) PushHook(...)
- func (f *TransactionContractUpdateFunc) PushReturn(r0 error)
- func (f *TransactionContractUpdateFunc) SetDefaultHook(...)
- func (f *TransactionContractUpdateFunc) SetDefaultReturn(r0 error)
- type TransactionContractUpdateFuncCall
- type TransactionRepositoryCreateFunc
- func (f *TransactionRepositoryCreateFunc) History() []TransactionRepositoryCreateFuncCall
- func (f *TransactionRepositoryCreateFunc) PushHook(hook func(context.Context, *beans.Transaction) error)
- func (f *TransactionRepositoryCreateFunc) PushReturn(r0 error)
- func (f *TransactionRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, *beans.Transaction) error)
- func (f *TransactionRepositoryCreateFunc) SetDefaultReturn(r0 error)
- type TransactionRepositoryCreateFuncCall
- type TransactionRepositoryGetForBudgetFunc
- func (f *TransactionRepositoryGetForBudgetFunc) History() []TransactionRepositoryGetForBudgetFuncCall
- func (f *TransactionRepositoryGetForBudgetFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.Transaction, error))
- func (f *TransactionRepositoryGetForBudgetFunc) PushReturn(r0 []*beans.Transaction, r1 error)
- func (f *TransactionRepositoryGetForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.Transaction, error))
- func (f *TransactionRepositoryGetForBudgetFunc) SetDefaultReturn(r0 []*beans.Transaction, r1 error)
- type TransactionRepositoryGetForBudgetFuncCall
- type TransactionRepositoryGetFunc
- func (f *TransactionRepositoryGetFunc) History() []TransactionRepositoryGetFuncCall
- func (f *TransactionRepositoryGetFunc) PushHook(hook func(context.Context, beans.ID) (*beans.Transaction, error))
- func (f *TransactionRepositoryGetFunc) PushReturn(r0 *beans.Transaction, r1 error)
- func (f *TransactionRepositoryGetFunc) SetDefaultHook(hook func(context.Context, beans.ID) (*beans.Transaction, error))
- func (f *TransactionRepositoryGetFunc) SetDefaultReturn(r0 *beans.Transaction, r1 error)
- type TransactionRepositoryGetFuncCall
- type TransactionRepositoryGetIncomeBetweenFunc
- func (f *TransactionRepositoryGetIncomeBetweenFunc) History() []TransactionRepositoryGetIncomeBetweenFuncCall
- func (f *TransactionRepositoryGetIncomeBetweenFunc) PushHook(...)
- func (f *TransactionRepositoryGetIncomeBetweenFunc) PushReturn(r0 beans.Amount, r1 error)
- func (f *TransactionRepositoryGetIncomeBetweenFunc) SetDefaultHook(...)
- func (f *TransactionRepositoryGetIncomeBetweenFunc) SetDefaultReturn(r0 beans.Amount, r1 error)
- type TransactionRepositoryGetIncomeBetweenFuncCall
- type TransactionRepositoryUpdateFunc
- func (f *TransactionRepositoryUpdateFunc) History() []TransactionRepositoryUpdateFuncCall
- func (f *TransactionRepositoryUpdateFunc) PushHook(hook func(context.Context, *beans.Transaction) error)
- func (f *TransactionRepositoryUpdateFunc) PushReturn(r0 error)
- func (f *TransactionRepositoryUpdateFunc) SetDefaultHook(hook func(context.Context, *beans.Transaction) error)
- func (f *TransactionRepositoryUpdateFunc) SetDefaultReturn(r0 error)
- type TransactionRepositoryUpdateFuncCall
- type TxCommitFunc
- type TxCommitFuncCall
- type TxManagerCreateFunc
- func (f *TxManagerCreateFunc) History() []TxManagerCreateFuncCall
- func (f *TxManagerCreateFunc) PushHook(hook func(context.Context) (beans.Tx, error))
- func (f *TxManagerCreateFunc) PushReturn(r0 beans.Tx, r1 error)
- func (f *TxManagerCreateFunc) SetDefaultHook(hook func(context.Context) (beans.Tx, error))
- func (f *TxManagerCreateFunc) SetDefaultReturn(r0 beans.Tx, r1 error)
- type TxManagerCreateFuncCall
- type TxRollbackFunc
- type TxRollbackFuncCall
- type UserContractGetMeFunc
- func (f *UserContractGetMeFunc) History() []UserContractGetMeFuncCall
- func (f *UserContractGetMeFunc) PushHook(hook func(context.Context, *beans.AuthContext) (*beans.User, error))
- func (f *UserContractGetMeFunc) PushReturn(r0 *beans.User, r1 error)
- func (f *UserContractGetMeFunc) SetDefaultHook(hook func(context.Context, *beans.AuthContext) (*beans.User, error))
- func (f *UserContractGetMeFunc) SetDefaultReturn(r0 *beans.User, r1 error)
- type UserContractGetMeFuncCall
- type UserContractLoginFunc
- func (f *UserContractLoginFunc) History() []UserContractLoginFuncCall
- func (f *UserContractLoginFunc) PushHook(...)
- func (f *UserContractLoginFunc) PushReturn(r0 *beans.Session, r1 error)
- func (f *UserContractLoginFunc) SetDefaultHook(...)
- func (f *UserContractLoginFunc) SetDefaultReturn(r0 *beans.Session, r1 error)
- type UserContractLoginFuncCall
- type UserContractLogoutFunc
- func (f *UserContractLogoutFunc) History() []UserContractLogoutFuncCall
- func (f *UserContractLogoutFunc) PushHook(hook func(context.Context, *beans.AuthContext) error)
- func (f *UserContractLogoutFunc) PushReturn(r0 error)
- func (f *UserContractLogoutFunc) SetDefaultHook(hook func(context.Context, *beans.AuthContext) error)
- func (f *UserContractLogoutFunc) SetDefaultReturn(r0 error)
- type UserContractLogoutFuncCall
- type UserContractRegisterFunc
- func (f *UserContractRegisterFunc) History() []UserContractRegisterFuncCall
- func (f *UserContractRegisterFunc) PushHook(hook func(context.Context, beans.Username, beans.Password) error)
- func (f *UserContractRegisterFunc) PushReturn(r0 error)
- func (f *UserContractRegisterFunc) SetDefaultHook(hook func(context.Context, beans.Username, beans.Password) error)
- func (f *UserContractRegisterFunc) SetDefaultReturn(r0 error)
- type UserContractRegisterFuncCall
- type UserRepositoryCreateFunc
- func (f *UserRepositoryCreateFunc) History() []UserRepositoryCreateFuncCall
- func (f *UserRepositoryCreateFunc) PushHook(hook func(context.Context, beans.ID, beans.Username, beans.PasswordHash) error)
- func (f *UserRepositoryCreateFunc) PushReturn(r0 error)
- func (f *UserRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, beans.ID, beans.Username, beans.PasswordHash) error)
- func (f *UserRepositoryCreateFunc) SetDefaultReturn(r0 error)
- type UserRepositoryCreateFuncCall
- type UserRepositoryExistsFunc
- func (f *UserRepositoryExistsFunc) History() []UserRepositoryExistsFuncCall
- func (f *UserRepositoryExistsFunc) PushHook(hook func(context.Context, beans.Username) (bool, error))
- func (f *UserRepositoryExistsFunc) PushReturn(r0 bool, r1 error)
- func (f *UserRepositoryExistsFunc) SetDefaultHook(hook func(context.Context, beans.Username) (bool, error))
- func (f *UserRepositoryExistsFunc) SetDefaultReturn(r0 bool, r1 error)
- type UserRepositoryExistsFuncCall
- type UserRepositoryGetByUsernameFunc
- func (f *UserRepositoryGetByUsernameFunc) History() []UserRepositoryGetByUsernameFuncCall
- func (f *UserRepositoryGetByUsernameFunc) PushHook(hook func(context.Context, beans.Username) (*beans.User, error))
- func (f *UserRepositoryGetByUsernameFunc) PushReturn(r0 *beans.User, r1 error)
- func (f *UserRepositoryGetByUsernameFunc) SetDefaultHook(hook func(context.Context, beans.Username) (*beans.User, error))
- func (f *UserRepositoryGetByUsernameFunc) SetDefaultReturn(r0 *beans.User, r1 error)
- type UserRepositoryGetByUsernameFuncCall
- type UserRepositoryGetFunc
- func (f *UserRepositoryGetFunc) History() []UserRepositoryGetFuncCall
- func (f *UserRepositoryGetFunc) PushHook(hook func(context.Context, beans.ID) (*beans.User, error))
- func (f *UserRepositoryGetFunc) PushReturn(r0 *beans.User, r1 error)
- func (f *UserRepositoryGetFunc) SetDefaultHook(hook func(context.Context, beans.ID) (*beans.User, error))
- func (f *UserRepositoryGetFunc) SetDefaultReturn(r0 *beans.User, r1 error)
- type UserRepositoryGetFuncCall
- type ValidatableValidateFunc
- func (f *ValidatableValidateFunc) History() []ValidatableValidateFuncCall
- func (f *ValidatableValidateFunc) PushHook(hook func() error)
- func (f *ValidatableValidateFunc) PushReturn(r0 error)
- func (f *ValidatableValidateFunc) SetDefaultHook(hook func() error)
- func (f *ValidatableValidateFunc) SetDefaultReturn(r0 error)
- type ValidatableValidateFuncCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountContractCreateFunc ¶
type AccountContractCreateFunc struct {
// contains filtered or unexported fields
}
AccountContractCreateFunc describes the behavior when the Create method of the parent MockAccountContract instance is invoked.
func (*AccountContractCreateFunc) History ¶
func (f *AccountContractCreateFunc) History() []AccountContractCreateFuncCall
History returns a sequence of AccountContractCreateFuncCall objects describing the invocations of this function.
func (*AccountContractCreateFunc) PushHook ¶
func (f *AccountContractCreateFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext, beans.Name) (*beans.Account, error))
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockAccountContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*AccountContractCreateFunc) PushReturn ¶
func (f *AccountContractCreateFunc) PushReturn(r0 *beans.Account, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*AccountContractCreateFunc) SetDefaultHook ¶
func (f *AccountContractCreateFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext, beans.Name) (*beans.Account, error))
SetDefaultHook sets function that is called when the Create method of the parent MockAccountContract instance is invoked and the hook queue is empty.
func (*AccountContractCreateFunc) SetDefaultReturn ¶
func (f *AccountContractCreateFunc) SetDefaultReturn(r0 *beans.Account, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type AccountContractCreateFuncCall ¶
type AccountContractCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.Name // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Account // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
AccountContractCreateFuncCall is an object that describes an invocation of method Create on an instance of MockAccountContract.
func (AccountContractCreateFuncCall) Args ¶
func (c AccountContractCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (AccountContractCreateFuncCall) Results ¶
func (c AccountContractCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type AccountContractGetAllFunc ¶
type AccountContractGetAllFunc struct {
// contains filtered or unexported fields
}
AccountContractGetAllFunc describes the behavior when the GetAll method of the parent MockAccountContract instance is invoked.
func (*AccountContractGetAllFunc) History ¶
func (f *AccountContractGetAllFunc) History() []AccountContractGetAllFuncCall
History returns a sequence of AccountContractGetAllFuncCall objects describing the invocations of this function.
func (*AccountContractGetAllFunc) PushHook ¶
func (f *AccountContractGetAllFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext) ([]*beans.Account, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetAll method of the parent MockAccountContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*AccountContractGetAllFunc) PushReturn ¶
func (f *AccountContractGetAllFunc) PushReturn(r0 []*beans.Account, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*AccountContractGetAllFunc) SetDefaultHook ¶
func (f *AccountContractGetAllFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext) ([]*beans.Account, error))
SetDefaultHook sets function that is called when the GetAll method of the parent MockAccountContract instance is invoked and the hook queue is empty.
func (*AccountContractGetAllFunc) SetDefaultReturn ¶
func (f *AccountContractGetAllFunc) SetDefaultReturn(r0 []*beans.Account, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type AccountContractGetAllFuncCall ¶
type AccountContractGetAllFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.Account // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
AccountContractGetAllFuncCall is an object that describes an invocation of method GetAll on an instance of MockAccountContract.
func (AccountContractGetAllFuncCall) Args ¶
func (c AccountContractGetAllFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (AccountContractGetAllFuncCall) Results ¶
func (c AccountContractGetAllFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type AccountRepositoryCreateFunc ¶
type AccountRepositoryCreateFunc struct {
// contains filtered or unexported fields
}
AccountRepositoryCreateFunc describes the behavior when the Create method of the parent MockAccountRepository instance is invoked.
func (*AccountRepositoryCreateFunc) History ¶
func (f *AccountRepositoryCreateFunc) History() []AccountRepositoryCreateFuncCall
History returns a sequence of AccountRepositoryCreateFuncCall objects describing the invocations of this function.
func (*AccountRepositoryCreateFunc) PushHook ¶
func (f *AccountRepositoryCreateFunc) PushHook(hook func(context.Context, beans.ID, beans.Name, beans.ID) error)
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockAccountRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*AccountRepositoryCreateFunc) PushReturn ¶
func (f *AccountRepositoryCreateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*AccountRepositoryCreateFunc) SetDefaultHook ¶
func (f *AccountRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, beans.ID, beans.Name, beans.ID) error)
SetDefaultHook sets function that is called when the Create method of the parent MockAccountRepository instance is invoked and the hook queue is empty.
func (*AccountRepositoryCreateFunc) SetDefaultReturn ¶
func (f *AccountRepositoryCreateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type AccountRepositoryCreateFuncCall ¶
type AccountRepositoryCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.Name // Arg3 is the value of the 4th argument passed to this method // invocation. Arg3 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
AccountRepositoryCreateFuncCall is an object that describes an invocation of method Create on an instance of MockAccountRepository.
func (AccountRepositoryCreateFuncCall) Args ¶
func (c AccountRepositoryCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (AccountRepositoryCreateFuncCall) Results ¶
func (c AccountRepositoryCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type AccountRepositoryGetForBudgetFunc ¶
type AccountRepositoryGetForBudgetFunc struct {
// contains filtered or unexported fields
}
AccountRepositoryGetForBudgetFunc describes the behavior when the GetForBudget method of the parent MockAccountRepository instance is invoked.
func (*AccountRepositoryGetForBudgetFunc) History ¶
func (f *AccountRepositoryGetForBudgetFunc) History() []AccountRepositoryGetForBudgetFuncCall
History returns a sequence of AccountRepositoryGetForBudgetFuncCall objects describing the invocations of this function.
func (*AccountRepositoryGetForBudgetFunc) PushHook ¶
func (f *AccountRepositoryGetForBudgetFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.Account, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetForBudget method of the parent MockAccountRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*AccountRepositoryGetForBudgetFunc) PushReturn ¶
func (f *AccountRepositoryGetForBudgetFunc) PushReturn(r0 []*beans.Account, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*AccountRepositoryGetForBudgetFunc) SetDefaultHook ¶
func (f *AccountRepositoryGetForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.Account, error))
SetDefaultHook sets function that is called when the GetForBudget method of the parent MockAccountRepository instance is invoked and the hook queue is empty.
func (*AccountRepositoryGetForBudgetFunc) SetDefaultReturn ¶
func (f *AccountRepositoryGetForBudgetFunc) SetDefaultReturn(r0 []*beans.Account, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type AccountRepositoryGetForBudgetFuncCall ¶
type AccountRepositoryGetForBudgetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.Account // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
AccountRepositoryGetForBudgetFuncCall is an object that describes an invocation of method GetForBudget on an instance of MockAccountRepository.
func (AccountRepositoryGetForBudgetFuncCall) Args ¶
func (c AccountRepositoryGetForBudgetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (AccountRepositoryGetForBudgetFuncCall) Results ¶
func (c AccountRepositoryGetForBudgetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type AccountRepositoryGetFunc ¶
type AccountRepositoryGetFunc struct {
// contains filtered or unexported fields
}
AccountRepositoryGetFunc describes the behavior when the Get method of the parent MockAccountRepository instance is invoked.
func (*AccountRepositoryGetFunc) History ¶
func (f *AccountRepositoryGetFunc) History() []AccountRepositoryGetFuncCall
History returns a sequence of AccountRepositoryGetFuncCall objects describing the invocations of this function.
func (*AccountRepositoryGetFunc) PushHook ¶
func (f *AccountRepositoryGetFunc) PushHook(hook func(context.Context, beans.ID) (*beans.Account, error))
PushHook adds a function to the end of hook queue. Each invocation of the Get method of the parent MockAccountRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*AccountRepositoryGetFunc) PushReturn ¶
func (f *AccountRepositoryGetFunc) PushReturn(r0 *beans.Account, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*AccountRepositoryGetFunc) SetDefaultHook ¶
func (f *AccountRepositoryGetFunc) SetDefaultHook(hook func(context.Context, beans.ID) (*beans.Account, error))
SetDefaultHook sets function that is called when the Get method of the parent MockAccountRepository instance is invoked and the hook queue is empty.
func (*AccountRepositoryGetFunc) SetDefaultReturn ¶
func (f *AccountRepositoryGetFunc) SetDefaultReturn(r0 *beans.Account, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type AccountRepositoryGetFuncCall ¶
type AccountRepositoryGetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Account // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
AccountRepositoryGetFuncCall is an object that describes an invocation of method Get on an instance of MockAccountRepository.
func (AccountRepositoryGetFuncCall) Args ¶
func (c AccountRepositoryGetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (AccountRepositoryGetFuncCall) Results ¶
func (c AccountRepositoryGetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type BudgetContractCreateFunc ¶
type BudgetContractCreateFunc struct {
// contains filtered or unexported fields
}
BudgetContractCreateFunc describes the behavior when the Create method of the parent MockBudgetContract instance is invoked.
func (*BudgetContractCreateFunc) History ¶
func (f *BudgetContractCreateFunc) History() []BudgetContractCreateFuncCall
History returns a sequence of BudgetContractCreateFuncCall objects describing the invocations of this function.
func (*BudgetContractCreateFunc) PushHook ¶
func (f *BudgetContractCreateFunc) PushHook(hook func(context.Context, *beans.AuthContext, beans.Name) (*beans.Budget, error))
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockBudgetContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*BudgetContractCreateFunc) PushReturn ¶
func (f *BudgetContractCreateFunc) PushReturn(r0 *beans.Budget, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*BudgetContractCreateFunc) SetDefaultHook ¶
func (f *BudgetContractCreateFunc) SetDefaultHook(hook func(context.Context, *beans.AuthContext, beans.Name) (*beans.Budget, error))
SetDefaultHook sets function that is called when the Create method of the parent MockBudgetContract instance is invoked and the hook queue is empty.
func (*BudgetContractCreateFunc) SetDefaultReturn ¶
func (f *BudgetContractCreateFunc) SetDefaultReturn(r0 *beans.Budget, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type BudgetContractCreateFuncCall ¶
type BudgetContractCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.AuthContext // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.Name // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Budget // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
BudgetContractCreateFuncCall is an object that describes an invocation of method Create on an instance of MockBudgetContract.
func (BudgetContractCreateFuncCall) Args ¶
func (c BudgetContractCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (BudgetContractCreateFuncCall) Results ¶
func (c BudgetContractCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type BudgetContractGetAllFunc ¶
type BudgetContractGetAllFunc struct {
// contains filtered or unexported fields
}
BudgetContractGetAllFunc describes the behavior when the GetAll method of the parent MockBudgetContract instance is invoked.
func (*BudgetContractGetAllFunc) History ¶
func (f *BudgetContractGetAllFunc) History() []BudgetContractGetAllFuncCall
History returns a sequence of BudgetContractGetAllFuncCall objects describing the invocations of this function.
func (*BudgetContractGetAllFunc) PushHook ¶
func (f *BudgetContractGetAllFunc) PushHook(hook func(context.Context, *beans.AuthContext) ([]*beans.Budget, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetAll method of the parent MockBudgetContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*BudgetContractGetAllFunc) PushReturn ¶
func (f *BudgetContractGetAllFunc) PushReturn(r0 []*beans.Budget, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*BudgetContractGetAllFunc) SetDefaultHook ¶
func (f *BudgetContractGetAllFunc) SetDefaultHook(hook func(context.Context, *beans.AuthContext) ([]*beans.Budget, error))
SetDefaultHook sets function that is called when the GetAll method of the parent MockBudgetContract instance is invoked and the hook queue is empty.
func (*BudgetContractGetAllFunc) SetDefaultReturn ¶
func (f *BudgetContractGetAllFunc) SetDefaultReturn(r0 []*beans.Budget, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type BudgetContractGetAllFuncCall ¶
type BudgetContractGetAllFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.AuthContext // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.Budget // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
BudgetContractGetAllFuncCall is an object that describes an invocation of method GetAll on an instance of MockBudgetContract.
func (BudgetContractGetAllFuncCall) Args ¶
func (c BudgetContractGetAllFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (BudgetContractGetAllFuncCall) Results ¶
func (c BudgetContractGetAllFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type BudgetContractGetFunc ¶
type BudgetContractGetFunc struct {
// contains filtered or unexported fields
}
BudgetContractGetFunc describes the behavior when the Get method of the parent MockBudgetContract instance is invoked.
func (*BudgetContractGetFunc) History ¶
func (f *BudgetContractGetFunc) History() []BudgetContractGetFuncCall
History returns a sequence of BudgetContractGetFuncCall objects describing the invocations of this function.
func (*BudgetContractGetFunc) PushHook ¶
func (f *BudgetContractGetFunc) PushHook(hook func(context.Context, *beans.AuthContext, beans.ID) (*beans.Budget, error))
PushHook adds a function to the end of hook queue. Each invocation of the Get method of the parent MockBudgetContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*BudgetContractGetFunc) PushReturn ¶
func (f *BudgetContractGetFunc) PushReturn(r0 *beans.Budget, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*BudgetContractGetFunc) SetDefaultHook ¶
func (f *BudgetContractGetFunc) SetDefaultHook(hook func(context.Context, *beans.AuthContext, beans.ID) (*beans.Budget, error))
SetDefaultHook sets function that is called when the Get method of the parent MockBudgetContract instance is invoked and the hook queue is empty.
func (*BudgetContractGetFunc) SetDefaultReturn ¶
func (f *BudgetContractGetFunc) SetDefaultReturn(r0 *beans.Budget, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type BudgetContractGetFuncCall ¶
type BudgetContractGetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.AuthContext // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Budget // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
BudgetContractGetFuncCall is an object that describes an invocation of method Get on an instance of MockBudgetContract.
func (BudgetContractGetFuncCall) Args ¶
func (c BudgetContractGetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (BudgetContractGetFuncCall) Results ¶
func (c BudgetContractGetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type BudgetRepositoryCreateFunc ¶
type BudgetRepositoryCreateFunc struct {
// contains filtered or unexported fields
}
BudgetRepositoryCreateFunc describes the behavior when the Create method of the parent MockBudgetRepository instance is invoked.
func (*BudgetRepositoryCreateFunc) History ¶
func (f *BudgetRepositoryCreateFunc) History() []BudgetRepositoryCreateFuncCall
History returns a sequence of BudgetRepositoryCreateFuncCall objects describing the invocations of this function.
func (*BudgetRepositoryCreateFunc) PushHook ¶
func (f *BudgetRepositoryCreateFunc) PushHook(hook func(context.Context, beans.Tx, beans.ID, beans.Name, beans.ID) error)
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockBudgetRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*BudgetRepositoryCreateFunc) PushReturn ¶
func (f *BudgetRepositoryCreateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*BudgetRepositoryCreateFunc) SetDefaultHook ¶
func (f *BudgetRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, beans.Tx, beans.ID, beans.Name, beans.ID) error)
SetDefaultHook sets function that is called when the Create method of the parent MockBudgetRepository instance is invoked and the hook queue is empty.
func (*BudgetRepositoryCreateFunc) SetDefaultReturn ¶
func (f *BudgetRepositoryCreateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type BudgetRepositoryCreateFuncCall ¶
type BudgetRepositoryCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.Tx // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.ID // Arg3 is the value of the 4th argument passed to this method // invocation. Arg3 beans.Name // Arg4 is the value of the 5th argument passed to this method // invocation. Arg4 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
BudgetRepositoryCreateFuncCall is an object that describes an invocation of method Create on an instance of MockBudgetRepository.
func (BudgetRepositoryCreateFuncCall) Args ¶
func (c BudgetRepositoryCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (BudgetRepositoryCreateFuncCall) Results ¶
func (c BudgetRepositoryCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type BudgetRepositoryGetBudgetsForUserFunc ¶
type BudgetRepositoryGetBudgetsForUserFunc struct {
// contains filtered or unexported fields
}
BudgetRepositoryGetBudgetsForUserFunc describes the behavior when the GetBudgetsForUser method of the parent MockBudgetRepository instance is invoked.
func (*BudgetRepositoryGetBudgetsForUserFunc) History ¶
func (f *BudgetRepositoryGetBudgetsForUserFunc) History() []BudgetRepositoryGetBudgetsForUserFuncCall
History returns a sequence of BudgetRepositoryGetBudgetsForUserFuncCall objects describing the invocations of this function.
func (*BudgetRepositoryGetBudgetsForUserFunc) PushHook ¶
func (f *BudgetRepositoryGetBudgetsForUserFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.Budget, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetBudgetsForUser method of the parent MockBudgetRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*BudgetRepositoryGetBudgetsForUserFunc) PushReturn ¶
func (f *BudgetRepositoryGetBudgetsForUserFunc) PushReturn(r0 []*beans.Budget, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*BudgetRepositoryGetBudgetsForUserFunc) SetDefaultHook ¶
func (f *BudgetRepositoryGetBudgetsForUserFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.Budget, error))
SetDefaultHook sets function that is called when the GetBudgetsForUser method of the parent MockBudgetRepository instance is invoked and the hook queue is empty.
func (*BudgetRepositoryGetBudgetsForUserFunc) SetDefaultReturn ¶
func (f *BudgetRepositoryGetBudgetsForUserFunc) SetDefaultReturn(r0 []*beans.Budget, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type BudgetRepositoryGetBudgetsForUserFuncCall ¶
type BudgetRepositoryGetBudgetsForUserFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.Budget // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
BudgetRepositoryGetBudgetsForUserFuncCall is an object that describes an invocation of method GetBudgetsForUser on an instance of MockBudgetRepository.
func (BudgetRepositoryGetBudgetsForUserFuncCall) Args ¶
func (c BudgetRepositoryGetBudgetsForUserFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (BudgetRepositoryGetBudgetsForUserFuncCall) Results ¶
func (c BudgetRepositoryGetBudgetsForUserFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type BudgetRepositoryGetFunc ¶
type BudgetRepositoryGetFunc struct {
// contains filtered or unexported fields
}
BudgetRepositoryGetFunc describes the behavior when the Get method of the parent MockBudgetRepository instance is invoked.
func (*BudgetRepositoryGetFunc) History ¶
func (f *BudgetRepositoryGetFunc) History() []BudgetRepositoryGetFuncCall
History returns a sequence of BudgetRepositoryGetFuncCall objects describing the invocations of this function.
func (*BudgetRepositoryGetFunc) PushHook ¶
func (f *BudgetRepositoryGetFunc) PushHook(hook func(context.Context, beans.ID) (*beans.Budget, error))
PushHook adds a function to the end of hook queue. Each invocation of the Get method of the parent MockBudgetRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*BudgetRepositoryGetFunc) PushReturn ¶
func (f *BudgetRepositoryGetFunc) PushReturn(r0 *beans.Budget, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*BudgetRepositoryGetFunc) SetDefaultHook ¶
func (f *BudgetRepositoryGetFunc) SetDefaultHook(hook func(context.Context, beans.ID) (*beans.Budget, error))
SetDefaultHook sets function that is called when the Get method of the parent MockBudgetRepository instance is invoked and the hook queue is empty.
func (*BudgetRepositoryGetFunc) SetDefaultReturn ¶
func (f *BudgetRepositoryGetFunc) SetDefaultReturn(r0 *beans.Budget, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type BudgetRepositoryGetFuncCall ¶
type BudgetRepositoryGetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Budget // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
BudgetRepositoryGetFuncCall is an object that describes an invocation of method Get on an instance of MockBudgetRepository.
func (BudgetRepositoryGetFuncCall) Args ¶
func (c BudgetRepositoryGetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (BudgetRepositoryGetFuncCall) Results ¶
func (c BudgetRepositoryGetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type CategoryContractCreateCategoryFunc ¶
type CategoryContractCreateCategoryFunc struct {
// contains filtered or unexported fields
}
CategoryContractCreateCategoryFunc describes the behavior when the CreateCategory method of the parent MockCategoryContract instance is invoked.
func (*CategoryContractCreateCategoryFunc) History ¶
func (f *CategoryContractCreateCategoryFunc) History() []CategoryContractCreateCategoryFuncCall
History returns a sequence of CategoryContractCreateCategoryFuncCall objects describing the invocations of this function.
func (*CategoryContractCreateCategoryFunc) PushHook ¶
func (f *CategoryContractCreateCategoryFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext, beans.ID, beans.Name) (*beans.Category, error))
PushHook adds a function to the end of hook queue. Each invocation of the CreateCategory method of the parent MockCategoryContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*CategoryContractCreateCategoryFunc) PushReturn ¶
func (f *CategoryContractCreateCategoryFunc) PushReturn(r0 *beans.Category, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*CategoryContractCreateCategoryFunc) SetDefaultHook ¶
func (f *CategoryContractCreateCategoryFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext, beans.ID, beans.Name) (*beans.Category, error))
SetDefaultHook sets function that is called when the CreateCategory method of the parent MockCategoryContract instance is invoked and the hook queue is empty.
func (*CategoryContractCreateCategoryFunc) SetDefaultReturn ¶
func (f *CategoryContractCreateCategoryFunc) SetDefaultReturn(r0 *beans.Category, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type CategoryContractCreateCategoryFuncCall ¶
type CategoryContractCreateCategoryFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.ID // Arg3 is the value of the 4th argument passed to this method // invocation. Arg3 beans.Name // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Category // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
CategoryContractCreateCategoryFuncCall is an object that describes an invocation of method CreateCategory on an instance of MockCategoryContract.
func (CategoryContractCreateCategoryFuncCall) Args ¶
func (c CategoryContractCreateCategoryFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (CategoryContractCreateCategoryFuncCall) Results ¶
func (c CategoryContractCreateCategoryFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type CategoryContractCreateGroupFunc ¶
type CategoryContractCreateGroupFunc struct {
// contains filtered or unexported fields
}
CategoryContractCreateGroupFunc describes the behavior when the CreateGroup method of the parent MockCategoryContract instance is invoked.
func (*CategoryContractCreateGroupFunc) History ¶
func (f *CategoryContractCreateGroupFunc) History() []CategoryContractCreateGroupFuncCall
History returns a sequence of CategoryContractCreateGroupFuncCall objects describing the invocations of this function.
func (*CategoryContractCreateGroupFunc) PushHook ¶
func (f *CategoryContractCreateGroupFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext, beans.Name) (*beans.CategoryGroup, error))
PushHook adds a function to the end of hook queue. Each invocation of the CreateGroup method of the parent MockCategoryContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*CategoryContractCreateGroupFunc) PushReturn ¶
func (f *CategoryContractCreateGroupFunc) PushReturn(r0 *beans.CategoryGroup, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*CategoryContractCreateGroupFunc) SetDefaultHook ¶
func (f *CategoryContractCreateGroupFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext, beans.Name) (*beans.CategoryGroup, error))
SetDefaultHook sets function that is called when the CreateGroup method of the parent MockCategoryContract instance is invoked and the hook queue is empty.
func (*CategoryContractCreateGroupFunc) SetDefaultReturn ¶
func (f *CategoryContractCreateGroupFunc) SetDefaultReturn(r0 *beans.CategoryGroup, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type CategoryContractCreateGroupFuncCall ¶
type CategoryContractCreateGroupFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.Name // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.CategoryGroup // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
CategoryContractCreateGroupFuncCall is an object that describes an invocation of method CreateGroup on an instance of MockCategoryContract.
func (CategoryContractCreateGroupFuncCall) Args ¶
func (c CategoryContractCreateGroupFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (CategoryContractCreateGroupFuncCall) Results ¶
func (c CategoryContractCreateGroupFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type CategoryContractGetAllFunc ¶
type CategoryContractGetAllFunc struct {
// contains filtered or unexported fields
}
CategoryContractGetAllFunc describes the behavior when the GetAll method of the parent MockCategoryContract instance is invoked.
func (*CategoryContractGetAllFunc) History ¶
func (f *CategoryContractGetAllFunc) History() []CategoryContractGetAllFuncCall
History returns a sequence of CategoryContractGetAllFuncCall objects describing the invocations of this function.
func (*CategoryContractGetAllFunc) PushHook ¶
func (f *CategoryContractGetAllFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext) ([]*beans.CategoryGroup, []*beans.Category, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetAll method of the parent MockCategoryContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*CategoryContractGetAllFunc) PushReturn ¶
func (f *CategoryContractGetAllFunc) PushReturn(r0 []*beans.CategoryGroup, r1 []*beans.Category, r2 error)
PushReturn calls PushHook with a function that returns the given values.
func (*CategoryContractGetAllFunc) SetDefaultHook ¶
func (f *CategoryContractGetAllFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext) ([]*beans.CategoryGroup, []*beans.Category, error))
SetDefaultHook sets function that is called when the GetAll method of the parent MockCategoryContract instance is invoked and the hook queue is empty.
func (*CategoryContractGetAllFunc) SetDefaultReturn ¶
func (f *CategoryContractGetAllFunc) SetDefaultReturn(r0 []*beans.CategoryGroup, r1 []*beans.Category, r2 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type CategoryContractGetAllFuncCall ¶
type CategoryContractGetAllFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.CategoryGroup // Result1 is the value of the 2nd result returned from this method // invocation. Result1 []*beans.Category // Result2 is the value of the 3rd result returned from this method // invocation. Result2 error }
CategoryContractGetAllFuncCall is an object that describes an invocation of method GetAll on an instance of MockCategoryContract.
func (CategoryContractGetAllFuncCall) Args ¶
func (c CategoryContractGetAllFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (CategoryContractGetAllFuncCall) Results ¶
func (c CategoryContractGetAllFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type CategoryRepositoryCreateFunc ¶
type CategoryRepositoryCreateFunc struct {
// contains filtered or unexported fields
}
CategoryRepositoryCreateFunc describes the behavior when the Create method of the parent MockCategoryRepository instance is invoked.
func (*CategoryRepositoryCreateFunc) History ¶
func (f *CategoryRepositoryCreateFunc) History() []CategoryRepositoryCreateFuncCall
History returns a sequence of CategoryRepositoryCreateFuncCall objects describing the invocations of this function.
func (*CategoryRepositoryCreateFunc) PushHook ¶
func (f *CategoryRepositoryCreateFunc) PushHook(hook func(context.Context, beans.Tx, *beans.Category) error)
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockCategoryRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*CategoryRepositoryCreateFunc) PushReturn ¶
func (f *CategoryRepositoryCreateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*CategoryRepositoryCreateFunc) SetDefaultHook ¶
func (f *CategoryRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, beans.Tx, *beans.Category) error)
SetDefaultHook sets function that is called when the Create method of the parent MockCategoryRepository instance is invoked and the hook queue is empty.
func (*CategoryRepositoryCreateFunc) SetDefaultReturn ¶
func (f *CategoryRepositoryCreateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type CategoryRepositoryCreateFuncCall ¶
type CategoryRepositoryCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.Tx // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 *beans.Category // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
CategoryRepositoryCreateFuncCall is an object that describes an invocation of method Create on an instance of MockCategoryRepository.
func (CategoryRepositoryCreateFuncCall) Args ¶
func (c CategoryRepositoryCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (CategoryRepositoryCreateFuncCall) Results ¶
func (c CategoryRepositoryCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type CategoryRepositoryCreateGroupFunc ¶
type CategoryRepositoryCreateGroupFunc struct {
// contains filtered or unexported fields
}
CategoryRepositoryCreateGroupFunc describes the behavior when the CreateGroup method of the parent MockCategoryRepository instance is invoked.
func (*CategoryRepositoryCreateGroupFunc) History ¶
func (f *CategoryRepositoryCreateGroupFunc) History() []CategoryRepositoryCreateGroupFuncCall
History returns a sequence of CategoryRepositoryCreateGroupFuncCall objects describing the invocations of this function.
func (*CategoryRepositoryCreateGroupFunc) PushHook ¶
func (f *CategoryRepositoryCreateGroupFunc) PushHook(hook func(context.Context, beans.Tx, *beans.CategoryGroup) error)
PushHook adds a function to the end of hook queue. Each invocation of the CreateGroup method of the parent MockCategoryRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*CategoryRepositoryCreateGroupFunc) PushReturn ¶
func (f *CategoryRepositoryCreateGroupFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*CategoryRepositoryCreateGroupFunc) SetDefaultHook ¶
func (f *CategoryRepositoryCreateGroupFunc) SetDefaultHook(hook func(context.Context, beans.Tx, *beans.CategoryGroup) error)
SetDefaultHook sets function that is called when the CreateGroup method of the parent MockCategoryRepository instance is invoked and the hook queue is empty.
func (*CategoryRepositoryCreateGroupFunc) SetDefaultReturn ¶
func (f *CategoryRepositoryCreateGroupFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type CategoryRepositoryCreateGroupFuncCall ¶
type CategoryRepositoryCreateGroupFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.Tx // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 *beans.CategoryGroup // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
CategoryRepositoryCreateGroupFuncCall is an object that describes an invocation of method CreateGroup on an instance of MockCategoryRepository.
func (CategoryRepositoryCreateGroupFuncCall) Args ¶
func (c CategoryRepositoryCreateGroupFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (CategoryRepositoryCreateGroupFuncCall) Results ¶
func (c CategoryRepositoryCreateGroupFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type CategoryRepositoryGetForBudgetFunc ¶
type CategoryRepositoryGetForBudgetFunc struct {
// contains filtered or unexported fields
}
CategoryRepositoryGetForBudgetFunc describes the behavior when the GetForBudget method of the parent MockCategoryRepository instance is invoked.
func (*CategoryRepositoryGetForBudgetFunc) History ¶
func (f *CategoryRepositoryGetForBudgetFunc) History() []CategoryRepositoryGetForBudgetFuncCall
History returns a sequence of CategoryRepositoryGetForBudgetFuncCall objects describing the invocations of this function.
func (*CategoryRepositoryGetForBudgetFunc) PushHook ¶
func (f *CategoryRepositoryGetForBudgetFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.Category, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetForBudget method of the parent MockCategoryRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*CategoryRepositoryGetForBudgetFunc) PushReturn ¶
func (f *CategoryRepositoryGetForBudgetFunc) PushReturn(r0 []*beans.Category, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*CategoryRepositoryGetForBudgetFunc) SetDefaultHook ¶
func (f *CategoryRepositoryGetForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.Category, error))
SetDefaultHook sets function that is called when the GetForBudget method of the parent MockCategoryRepository instance is invoked and the hook queue is empty.
func (*CategoryRepositoryGetForBudgetFunc) SetDefaultReturn ¶
func (f *CategoryRepositoryGetForBudgetFunc) SetDefaultReturn(r0 []*beans.Category, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type CategoryRepositoryGetForBudgetFuncCall ¶
type CategoryRepositoryGetForBudgetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.Category // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
CategoryRepositoryGetForBudgetFuncCall is an object that describes an invocation of method GetForBudget on an instance of MockCategoryRepository.
func (CategoryRepositoryGetForBudgetFuncCall) Args ¶
func (c CategoryRepositoryGetForBudgetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (CategoryRepositoryGetForBudgetFuncCall) Results ¶
func (c CategoryRepositoryGetForBudgetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type CategoryRepositoryGetGroupsForBudgetFunc ¶
type CategoryRepositoryGetGroupsForBudgetFunc struct {
// contains filtered or unexported fields
}
CategoryRepositoryGetGroupsForBudgetFunc describes the behavior when the GetGroupsForBudget method of the parent MockCategoryRepository instance is invoked.
func (*CategoryRepositoryGetGroupsForBudgetFunc) History ¶
func (f *CategoryRepositoryGetGroupsForBudgetFunc) History() []CategoryRepositoryGetGroupsForBudgetFuncCall
History returns a sequence of CategoryRepositoryGetGroupsForBudgetFuncCall objects describing the invocations of this function.
func (*CategoryRepositoryGetGroupsForBudgetFunc) PushHook ¶
func (f *CategoryRepositoryGetGroupsForBudgetFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.CategoryGroup, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetGroupsForBudget method of the parent MockCategoryRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*CategoryRepositoryGetGroupsForBudgetFunc) PushReturn ¶
func (f *CategoryRepositoryGetGroupsForBudgetFunc) PushReturn(r0 []*beans.CategoryGroup, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*CategoryRepositoryGetGroupsForBudgetFunc) SetDefaultHook ¶
func (f *CategoryRepositoryGetGroupsForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.CategoryGroup, error))
SetDefaultHook sets function that is called when the GetGroupsForBudget method of the parent MockCategoryRepository instance is invoked and the hook queue is empty.
func (*CategoryRepositoryGetGroupsForBudgetFunc) SetDefaultReturn ¶
func (f *CategoryRepositoryGetGroupsForBudgetFunc) SetDefaultReturn(r0 []*beans.CategoryGroup, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type CategoryRepositoryGetGroupsForBudgetFuncCall ¶
type CategoryRepositoryGetGroupsForBudgetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.CategoryGroup // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
CategoryRepositoryGetGroupsForBudgetFuncCall is an object that describes an invocation of method GetGroupsForBudget on an instance of MockCategoryRepository.
func (CategoryRepositoryGetGroupsForBudgetFuncCall) Args ¶
func (c CategoryRepositoryGetGroupsForBudgetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (CategoryRepositoryGetGroupsForBudgetFuncCall) Results ¶
func (c CategoryRepositoryGetGroupsForBudgetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type CategoryRepositoryGetSingleForBudgetFunc ¶
type CategoryRepositoryGetSingleForBudgetFunc struct {
// contains filtered or unexported fields
}
CategoryRepositoryGetSingleForBudgetFunc describes the behavior when the GetSingleForBudget method of the parent MockCategoryRepository instance is invoked.
func (*CategoryRepositoryGetSingleForBudgetFunc) History ¶
func (f *CategoryRepositoryGetSingleForBudgetFunc) History() []CategoryRepositoryGetSingleForBudgetFuncCall
History returns a sequence of CategoryRepositoryGetSingleForBudgetFuncCall objects describing the invocations of this function.
func (*CategoryRepositoryGetSingleForBudgetFunc) PushHook ¶
func (f *CategoryRepositoryGetSingleForBudgetFunc) PushHook(hook func(context.Context, beans.ID, beans.ID) (*beans.Category, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetSingleForBudget method of the parent MockCategoryRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*CategoryRepositoryGetSingleForBudgetFunc) PushReturn ¶
func (f *CategoryRepositoryGetSingleForBudgetFunc) PushReturn(r0 *beans.Category, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*CategoryRepositoryGetSingleForBudgetFunc) SetDefaultHook ¶
func (f *CategoryRepositoryGetSingleForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID, beans.ID) (*beans.Category, error))
SetDefaultHook sets function that is called when the GetSingleForBudget method of the parent MockCategoryRepository instance is invoked and the hook queue is empty.
func (*CategoryRepositoryGetSingleForBudgetFunc) SetDefaultReturn ¶
func (f *CategoryRepositoryGetSingleForBudgetFunc) SetDefaultReturn(r0 *beans.Category, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type CategoryRepositoryGetSingleForBudgetFuncCall ¶
type CategoryRepositoryGetSingleForBudgetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Category // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
CategoryRepositoryGetSingleForBudgetFuncCall is an object that describes an invocation of method GetSingleForBudget on an instance of MockCategoryRepository.
func (CategoryRepositoryGetSingleForBudgetFuncCall) Args ¶
func (c CategoryRepositoryGetSingleForBudgetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (CategoryRepositoryGetSingleForBudgetFuncCall) Results ¶
func (c CategoryRepositoryGetSingleForBudgetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type CategoryRepositoryGroupExistsFunc ¶
type CategoryRepositoryGroupExistsFunc struct {
// contains filtered or unexported fields
}
CategoryRepositoryGroupExistsFunc describes the behavior when the GroupExists method of the parent MockCategoryRepository instance is invoked.
func (*CategoryRepositoryGroupExistsFunc) History ¶
func (f *CategoryRepositoryGroupExistsFunc) History() []CategoryRepositoryGroupExistsFuncCall
History returns a sequence of CategoryRepositoryGroupExistsFuncCall objects describing the invocations of this function.
func (*CategoryRepositoryGroupExistsFunc) PushHook ¶
func (f *CategoryRepositoryGroupExistsFunc) PushHook(hook func(context.Context, beans.ID, beans.ID) (bool, error))
PushHook adds a function to the end of hook queue. Each invocation of the GroupExists method of the parent MockCategoryRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*CategoryRepositoryGroupExistsFunc) PushReturn ¶
func (f *CategoryRepositoryGroupExistsFunc) PushReturn(r0 bool, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*CategoryRepositoryGroupExistsFunc) SetDefaultHook ¶
func (f *CategoryRepositoryGroupExistsFunc) SetDefaultHook(hook func(context.Context, beans.ID, beans.ID) (bool, error))
SetDefaultHook sets function that is called when the GroupExists method of the parent MockCategoryRepository instance is invoked and the hook queue is empty.
func (*CategoryRepositoryGroupExistsFunc) SetDefaultReturn ¶
func (f *CategoryRepositoryGroupExistsFunc) SetDefaultReturn(r0 bool, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type CategoryRepositoryGroupExistsFuncCall ¶
type CategoryRepositoryGroupExistsFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 bool // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
CategoryRepositoryGroupExistsFuncCall is an object that describes an invocation of method GroupExists on an instance of MockCategoryRepository.
func (CategoryRepositoryGroupExistsFuncCall) Args ¶
func (c CategoryRepositoryGroupExistsFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (CategoryRepositoryGroupExistsFuncCall) Results ¶
func (c CategoryRepositoryGroupExistsFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type CountableLengthFunc ¶
type CountableLengthFunc struct {
// contains filtered or unexported fields
}
CountableLengthFunc describes the behavior when the Length method of the parent MockCountable instance is invoked.
func (*CountableLengthFunc) History ¶
func (f *CountableLengthFunc) History() []CountableLengthFuncCall
History returns a sequence of CountableLengthFuncCall objects describing the invocations of this function.
func (*CountableLengthFunc) PushHook ¶
func (f *CountableLengthFunc) PushHook(hook func() int)
PushHook adds a function to the end of hook queue. Each invocation of the Length method of the parent MockCountable instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*CountableLengthFunc) PushReturn ¶
func (f *CountableLengthFunc) PushReturn(r0 int)
PushReturn calls PushHook with a function that returns the given values.
func (*CountableLengthFunc) SetDefaultHook ¶
func (f *CountableLengthFunc) SetDefaultHook(hook func() int)
SetDefaultHook sets function that is called when the Length method of the parent MockCountable instance is invoked and the hook queue is empty.
func (*CountableLengthFunc) SetDefaultReturn ¶
func (f *CountableLengthFunc) SetDefaultReturn(r0 int)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type CountableLengthFuncCall ¶
type CountableLengthFuncCall struct { // Result0 is the value of the 1st result returned from this method // invocation. Result0 int }
CountableLengthFuncCall is an object that describes an invocation of method Length on an instance of MockCountable.
func (CountableLengthFuncCall) Args ¶
func (c CountableLengthFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (CountableLengthFuncCall) Results ¶
func (c CountableLengthFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type EmptiableEmptyFunc ¶
type EmptiableEmptyFunc struct {
// contains filtered or unexported fields
}
EmptiableEmptyFunc describes the behavior when the Empty method of the parent MockEmptiable instance is invoked.
func (*EmptiableEmptyFunc) History ¶
func (f *EmptiableEmptyFunc) History() []EmptiableEmptyFuncCall
History returns a sequence of EmptiableEmptyFuncCall objects describing the invocations of this function.
func (*EmptiableEmptyFunc) PushHook ¶
func (f *EmptiableEmptyFunc) PushHook(hook func() bool)
PushHook adds a function to the end of hook queue. Each invocation of the Empty method of the parent MockEmptiable instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*EmptiableEmptyFunc) PushReturn ¶
func (f *EmptiableEmptyFunc) PushReturn(r0 bool)
PushReturn calls PushHook with a function that returns the given values.
func (*EmptiableEmptyFunc) SetDefaultHook ¶
func (f *EmptiableEmptyFunc) SetDefaultHook(hook func() bool)
SetDefaultHook sets function that is called when the Empty method of the parent MockEmptiable instance is invoked and the hook queue is empty.
func (*EmptiableEmptyFunc) SetDefaultReturn ¶
func (f *EmptiableEmptyFunc) SetDefaultReturn(r0 bool)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type EmptiableEmptyFuncCall ¶
type EmptiableEmptyFuncCall struct { // Result0 is the value of the 1st result returned from this method // invocation. Result0 bool }
EmptiableEmptyFuncCall is an object that describes an invocation of method Empty on an instance of MockEmptiable.
func (EmptiableEmptyFuncCall) Args ¶
func (c EmptiableEmptyFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (EmptiableEmptyFuncCall) Results ¶
func (c EmptiableEmptyFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type ErrorBeansErrorFunc ¶
type ErrorBeansErrorFunc struct {
// contains filtered or unexported fields
}
ErrorBeansErrorFunc describes the behavior when the BeansError method of the parent MockError instance is invoked.
func (*ErrorBeansErrorFunc) History ¶
func (f *ErrorBeansErrorFunc) History() []ErrorBeansErrorFuncCall
History returns a sequence of ErrorBeansErrorFuncCall objects describing the invocations of this function.
func (*ErrorBeansErrorFunc) PushHook ¶
func (f *ErrorBeansErrorFunc) PushHook(hook func() (string, string))
PushHook adds a function to the end of hook queue. Each invocation of the BeansError method of the parent MockError instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*ErrorBeansErrorFunc) PushReturn ¶
func (f *ErrorBeansErrorFunc) PushReturn(r0 string, r1 string)
PushReturn calls PushHook with a function that returns the given values.
func (*ErrorBeansErrorFunc) SetDefaultHook ¶
func (f *ErrorBeansErrorFunc) SetDefaultHook(hook func() (string, string))
SetDefaultHook sets function that is called when the BeansError method of the parent MockError instance is invoked and the hook queue is empty.
func (*ErrorBeansErrorFunc) SetDefaultReturn ¶
func (f *ErrorBeansErrorFunc) SetDefaultReturn(r0 string, r1 string)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type ErrorBeansErrorFuncCall ¶
type ErrorBeansErrorFuncCall struct { // Result0 is the value of the 1st result returned from this method // invocation. Result0 string // Result1 is the value of the 2nd result returned from this method // invocation. Result1 string }
ErrorBeansErrorFuncCall is an object that describes an invocation of method BeansError on an instance of MockError.
func (ErrorBeansErrorFuncCall) Args ¶
func (c ErrorBeansErrorFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (ErrorBeansErrorFuncCall) Results ¶
func (c ErrorBeansErrorFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type ErrorErrorFunc ¶
type ErrorErrorFunc struct {
// contains filtered or unexported fields
}
ErrorErrorFunc describes the behavior when the Error method of the parent MockError instance is invoked.
func (*ErrorErrorFunc) History ¶
func (f *ErrorErrorFunc) History() []ErrorErrorFuncCall
History returns a sequence of ErrorErrorFuncCall objects describing the invocations of this function.
func (*ErrorErrorFunc) PushHook ¶
func (f *ErrorErrorFunc) PushHook(hook func() string)
PushHook adds a function to the end of hook queue. Each invocation of the Error method of the parent MockError instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*ErrorErrorFunc) PushReturn ¶
func (f *ErrorErrorFunc) PushReturn(r0 string)
PushReturn calls PushHook with a function that returns the given values.
func (*ErrorErrorFunc) SetDefaultHook ¶
func (f *ErrorErrorFunc) SetDefaultHook(hook func() string)
SetDefaultHook sets function that is called when the Error method of the parent MockError instance is invoked and the hook queue is empty.
func (*ErrorErrorFunc) SetDefaultReturn ¶
func (f *ErrorErrorFunc) SetDefaultReturn(r0 string)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type ErrorErrorFuncCall ¶
type ErrorErrorFuncCall struct { // Result0 is the value of the 1st result returned from this method // invocation. Result0 string }
ErrorErrorFuncCall is an object that describes an invocation of method Error on an instance of MockError.
func (ErrorErrorFuncCall) Args ¶
func (c ErrorErrorFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (ErrorErrorFuncCall) Results ¶
func (c ErrorErrorFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MockAccountContract ¶
type MockAccountContract struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *AccountContractCreateFunc // GetAllFunc is an instance of a mock function object controlling the // behavior of the method GetAll. GetAllFunc *AccountContractGetAllFunc }
MockAccountContract is a mock implementation of the AccountContract interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockAccountContract ¶
func NewMockAccountContract() *MockAccountContract
NewMockAccountContract creates a new mock of the AccountContract interface. All methods return zero values for all results, unless overwritten.
func NewMockAccountContractFrom ¶
func NewMockAccountContractFrom(i beans.AccountContract) *MockAccountContract
NewMockAccountContractFrom creates a new mock of the MockAccountContract interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockAccountContract ¶
func NewStrictMockAccountContract() *MockAccountContract
NewStrictMockAccountContract creates a new mock of the AccountContract interface. All methods panic on invocation, unless overwritten.
func (*MockAccountContract) Create ¶
func (m *MockAccountContract) Create(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.Name) (*beans.Account, error)
Create delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockAccountContract) GetAll ¶
func (m *MockAccountContract) GetAll(v0 context.Context, v1 *beans.BudgetAuthContext) ([]*beans.Account, error)
GetAll delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockAccountRepository ¶
type MockAccountRepository struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *AccountRepositoryCreateFunc // GetFunc is an instance of a mock function object controlling the // behavior of the method Get. GetFunc *AccountRepositoryGetFunc // GetForBudgetFunc is an instance of a mock function object controlling // the behavior of the method GetForBudget. GetForBudgetFunc *AccountRepositoryGetForBudgetFunc }
MockAccountRepository is a mock implementation of the AccountRepository interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockAccountRepository ¶
func NewMockAccountRepository() *MockAccountRepository
NewMockAccountRepository creates a new mock of the AccountRepository interface. All methods return zero values for all results, unless overwritten.
func NewMockAccountRepositoryFrom ¶
func NewMockAccountRepositoryFrom(i beans.AccountRepository) *MockAccountRepository
NewMockAccountRepositoryFrom creates a new mock of the MockAccountRepository interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockAccountRepository ¶
func NewStrictMockAccountRepository() *MockAccountRepository
NewStrictMockAccountRepository creates a new mock of the AccountRepository interface. All methods panic on invocation, unless overwritten.
func (*MockAccountRepository) Create ¶
func (m *MockAccountRepository) Create(v0 context.Context, v1 beans.ID, v2 beans.Name, v3 beans.ID) error
Create delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockAccountRepository) Get ¶
Get delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockAccountRepository) GetForBudget ¶
func (m *MockAccountRepository) GetForBudget(v0 context.Context, v1 beans.ID) ([]*beans.Account, error)
GetForBudget delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockBudgetContract ¶
type MockBudgetContract struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *BudgetContractCreateFunc // GetFunc is an instance of a mock function object controlling the // behavior of the method Get. GetFunc *BudgetContractGetFunc // GetAllFunc is an instance of a mock function object controlling the // behavior of the method GetAll. GetAllFunc *BudgetContractGetAllFunc }
MockBudgetContract is a mock implementation of the BudgetContract interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockBudgetContract ¶
func NewMockBudgetContract() *MockBudgetContract
NewMockBudgetContract creates a new mock of the BudgetContract interface. All methods return zero values for all results, unless overwritten.
func NewMockBudgetContractFrom ¶
func NewMockBudgetContractFrom(i beans.BudgetContract) *MockBudgetContract
NewMockBudgetContractFrom creates a new mock of the MockBudgetContract interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockBudgetContract ¶
func NewStrictMockBudgetContract() *MockBudgetContract
NewStrictMockBudgetContract creates a new mock of the BudgetContract interface. All methods panic on invocation, unless overwritten.
func (*MockBudgetContract) Create ¶
func (m *MockBudgetContract) Create(v0 context.Context, v1 *beans.AuthContext, v2 beans.Name) (*beans.Budget, error)
Create delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockBudgetContract) Get ¶
func (m *MockBudgetContract) Get(v0 context.Context, v1 *beans.AuthContext, v2 beans.ID) (*beans.Budget, error)
Get delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockBudgetContract) GetAll ¶
func (m *MockBudgetContract) GetAll(v0 context.Context, v1 *beans.AuthContext) ([]*beans.Budget, error)
GetAll delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockBudgetRepository ¶
type MockBudgetRepository struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *BudgetRepositoryCreateFunc // GetFunc is an instance of a mock function object controlling the // behavior of the method Get. GetFunc *BudgetRepositoryGetFunc // GetBudgetsForUserFunc is an instance of a mock function object // controlling the behavior of the method GetBudgetsForUser. GetBudgetsForUserFunc *BudgetRepositoryGetBudgetsForUserFunc }
MockBudgetRepository is a mock implementation of the BudgetRepository interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockBudgetRepository ¶
func NewMockBudgetRepository() *MockBudgetRepository
NewMockBudgetRepository creates a new mock of the BudgetRepository interface. All methods return zero values for all results, unless overwritten.
func NewMockBudgetRepositoryFrom ¶
func NewMockBudgetRepositoryFrom(i beans.BudgetRepository) *MockBudgetRepository
NewMockBudgetRepositoryFrom creates a new mock of the MockBudgetRepository interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockBudgetRepository ¶
func NewStrictMockBudgetRepository() *MockBudgetRepository
NewStrictMockBudgetRepository creates a new mock of the BudgetRepository interface. All methods panic on invocation, unless overwritten.
func (*MockBudgetRepository) Create ¶
func (m *MockBudgetRepository) Create(v0 context.Context, v1 beans.Tx, v2 beans.ID, v3 beans.Name, v4 beans.ID) error
Create delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockBudgetRepository) Get ¶
Get delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockBudgetRepository) GetBudgetsForUser ¶
func (m *MockBudgetRepository) GetBudgetsForUser(v0 context.Context, v1 beans.ID) ([]*beans.Budget, error)
GetBudgetsForUser delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockCategoryContract ¶
type MockCategoryContract struct { // CreateCategoryFunc is an instance of a mock function object // controlling the behavior of the method CreateCategory. CreateCategoryFunc *CategoryContractCreateCategoryFunc // CreateGroupFunc is an instance of a mock function object controlling // the behavior of the method CreateGroup. CreateGroupFunc *CategoryContractCreateGroupFunc // GetAllFunc is an instance of a mock function object controlling the // behavior of the method GetAll. GetAllFunc *CategoryContractGetAllFunc }
MockCategoryContract is a mock implementation of the CategoryContract interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockCategoryContract ¶
func NewMockCategoryContract() *MockCategoryContract
NewMockCategoryContract creates a new mock of the CategoryContract interface. All methods return zero values for all results, unless overwritten.
func NewMockCategoryContractFrom ¶
func NewMockCategoryContractFrom(i beans.CategoryContract) *MockCategoryContract
NewMockCategoryContractFrom creates a new mock of the MockCategoryContract interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockCategoryContract ¶
func NewStrictMockCategoryContract() *MockCategoryContract
NewStrictMockCategoryContract creates a new mock of the CategoryContract interface. All methods panic on invocation, unless overwritten.
func (*MockCategoryContract) CreateCategory ¶
func (m *MockCategoryContract) CreateCategory(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.ID, v3 beans.Name) (*beans.Category, error)
CreateCategory delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockCategoryContract) CreateGroup ¶
func (m *MockCategoryContract) CreateGroup(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.Name) (*beans.CategoryGroup, error)
CreateGroup delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockCategoryContract) GetAll ¶
func (m *MockCategoryContract) GetAll(v0 context.Context, v1 *beans.BudgetAuthContext) ([]*beans.CategoryGroup, []*beans.Category, error)
GetAll delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockCategoryRepository ¶
type MockCategoryRepository struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *CategoryRepositoryCreateFunc // CreateGroupFunc is an instance of a mock function object controlling // the behavior of the method CreateGroup. CreateGroupFunc *CategoryRepositoryCreateGroupFunc // GetForBudgetFunc is an instance of a mock function object controlling // the behavior of the method GetForBudget. GetForBudgetFunc *CategoryRepositoryGetForBudgetFunc // GetGroupsForBudgetFunc is an instance of a mock function object // controlling the behavior of the method GetGroupsForBudget. GetGroupsForBudgetFunc *CategoryRepositoryGetGroupsForBudgetFunc // GetSingleForBudgetFunc is an instance of a mock function object // controlling the behavior of the method GetSingleForBudget. GetSingleForBudgetFunc *CategoryRepositoryGetSingleForBudgetFunc // GroupExistsFunc is an instance of a mock function object controlling // the behavior of the method GroupExists. GroupExistsFunc *CategoryRepositoryGroupExistsFunc }
MockCategoryRepository is a mock implementation of the CategoryRepository interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockCategoryRepository ¶
func NewMockCategoryRepository() *MockCategoryRepository
NewMockCategoryRepository creates a new mock of the CategoryRepository interface. All methods return zero values for all results, unless overwritten.
func NewMockCategoryRepositoryFrom ¶
func NewMockCategoryRepositoryFrom(i beans.CategoryRepository) *MockCategoryRepository
NewMockCategoryRepositoryFrom creates a new mock of the MockCategoryRepository interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockCategoryRepository ¶
func NewStrictMockCategoryRepository() *MockCategoryRepository
NewStrictMockCategoryRepository creates a new mock of the CategoryRepository interface. All methods panic on invocation, unless overwritten.
func (*MockCategoryRepository) Create ¶
Create delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockCategoryRepository) CreateGroup ¶
func (m *MockCategoryRepository) CreateGroup(v0 context.Context, v1 beans.Tx, v2 *beans.CategoryGroup) error
CreateGroup delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockCategoryRepository) GetForBudget ¶
func (m *MockCategoryRepository) GetForBudget(v0 context.Context, v1 beans.ID) ([]*beans.Category, error)
GetForBudget delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockCategoryRepository) GetGroupsForBudget ¶
func (m *MockCategoryRepository) GetGroupsForBudget(v0 context.Context, v1 beans.ID) ([]*beans.CategoryGroup, error)
GetGroupsForBudget delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockCategoryRepository) GetSingleForBudget ¶
func (m *MockCategoryRepository) GetSingleForBudget(v0 context.Context, v1 beans.ID, v2 beans.ID) (*beans.Category, error)
GetSingleForBudget delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockCountable ¶
type MockCountable struct { // LengthFunc is an instance of a mock function object controlling the // behavior of the method Length. LengthFunc *CountableLengthFunc }
MockCountable is a mock implementation of the Countable interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockCountable ¶
func NewMockCountable() *MockCountable
NewMockCountable creates a new mock of the Countable interface. All methods return zero values for all results, unless overwritten.
func NewMockCountableFrom ¶
func NewMockCountableFrom(i beans.Countable) *MockCountable
NewMockCountableFrom creates a new mock of the MockCountable interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockCountable ¶
func NewStrictMockCountable() *MockCountable
NewStrictMockCountable creates a new mock of the Countable interface. All methods panic on invocation, unless overwritten.
func (*MockCountable) Length ¶
func (m *MockCountable) Length() int
Length delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockEmptiable ¶
type MockEmptiable struct { // EmptyFunc is an instance of a mock function object controlling the // behavior of the method Empty. EmptyFunc *EmptiableEmptyFunc }
MockEmptiable is a mock implementation of the Emptiable interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockEmptiable ¶
func NewMockEmptiable() *MockEmptiable
NewMockEmptiable creates a new mock of the Emptiable interface. All methods return zero values for all results, unless overwritten.
func NewMockEmptiableFrom ¶
func NewMockEmptiableFrom(i beans.Emptiable) *MockEmptiable
NewMockEmptiableFrom creates a new mock of the MockEmptiable interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockEmptiable ¶
func NewStrictMockEmptiable() *MockEmptiable
NewStrictMockEmptiable creates a new mock of the Emptiable interface. All methods panic on invocation, unless overwritten.
func (*MockEmptiable) Empty ¶
func (m *MockEmptiable) Empty() bool
Empty delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockError ¶
type MockError struct { // BeansErrorFunc is an instance of a mock function object controlling // the behavior of the method BeansError. BeansErrorFunc *ErrorBeansErrorFunc // ErrorFunc is an instance of a mock function object controlling the // behavior of the method Error. ErrorFunc *ErrorErrorFunc }
MockError is a mock implementation of the Error interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockError ¶
func NewMockError() *MockError
NewMockError creates a new mock of the Error interface. All methods return zero values for all results, unless overwritten.
func NewMockErrorFrom ¶
NewMockErrorFrom creates a new mock of the MockError interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockError ¶
func NewStrictMockError() *MockError
NewStrictMockError creates a new mock of the Error interface. All methods panic on invocation, unless overwritten.
func (*MockError) BeansError ¶
BeansError delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockMonthCategoryRepository ¶
type MockMonthCategoryRepository struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *MonthCategoryRepositoryCreateFunc // GetAssignedInMonthFunc is an instance of a mock function object // controlling the behavior of the method GetAssignedInMonth. GetAssignedInMonthFunc *MonthCategoryRepositoryGetAssignedInMonthFunc // GetForMonthFunc is an instance of a mock function object controlling // the behavior of the method GetForMonth. GetForMonthFunc *MonthCategoryRepositoryGetForMonthFunc // GetOrCreateFunc is an instance of a mock function object controlling // the behavior of the method GetOrCreate. GetOrCreateFunc *MonthCategoryRepositoryGetOrCreateFunc // UpdateAmountFunc is an instance of a mock function object controlling // the behavior of the method UpdateAmount. UpdateAmountFunc *MonthCategoryRepositoryUpdateAmountFunc }
MockMonthCategoryRepository is a mock implementation of the MonthCategoryRepository interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockMonthCategoryRepository ¶
func NewMockMonthCategoryRepository() *MockMonthCategoryRepository
NewMockMonthCategoryRepository creates a new mock of the MonthCategoryRepository interface. All methods return zero values for all results, unless overwritten.
func NewMockMonthCategoryRepositoryFrom ¶
func NewMockMonthCategoryRepositoryFrom(i beans.MonthCategoryRepository) *MockMonthCategoryRepository
NewMockMonthCategoryRepositoryFrom creates a new mock of the MockMonthCategoryRepository interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockMonthCategoryRepository ¶
func NewStrictMockMonthCategoryRepository() *MockMonthCategoryRepository
NewStrictMockMonthCategoryRepository creates a new mock of the MonthCategoryRepository interface. All methods panic on invocation, unless overwritten.
func (*MockMonthCategoryRepository) Create ¶
func (m *MockMonthCategoryRepository) Create(v0 context.Context, v1 beans.Tx, v2 *beans.MonthCategory) error
Create delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockMonthCategoryRepository) GetAssignedInMonth ¶
func (m *MockMonthCategoryRepository) GetAssignedInMonth(v0 context.Context, v1 beans.ID) (beans.Amount, error)
GetAssignedInMonth delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockMonthCategoryRepository) GetForMonth ¶
func (m *MockMonthCategoryRepository) GetForMonth(v0 context.Context, v1 *beans.Month) ([]*beans.MonthCategory, error)
GetForMonth delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockMonthCategoryRepository) GetOrCreate ¶
func (m *MockMonthCategoryRepository) GetOrCreate(v0 context.Context, v1 beans.Tx, v2 beans.ID, v3 beans.ID) (*beans.MonthCategory, error)
GetOrCreate delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockMonthCategoryRepository) UpdateAmount ¶
func (m *MockMonthCategoryRepository) UpdateAmount(v0 context.Context, v1 beans.ID, v2 beans.Amount) error
UpdateAmount delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockMonthContract ¶
type MockMonthContract struct { // GetOrCreateFunc is an instance of a mock function object controlling // the behavior of the method GetOrCreate. GetOrCreateFunc *MonthContractGetOrCreateFunc // SetCategoryAmountFunc is an instance of a mock function object // controlling the behavior of the method SetCategoryAmount. SetCategoryAmountFunc *MonthContractSetCategoryAmountFunc // UpdateFunc is an instance of a mock function object controlling the // behavior of the method Update. UpdateFunc *MonthContractUpdateFunc }
MockMonthContract is a mock implementation of the MonthContract interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockMonthContract ¶
func NewMockMonthContract() *MockMonthContract
NewMockMonthContract creates a new mock of the MonthContract interface. All methods return zero values for all results, unless overwritten.
func NewMockMonthContractFrom ¶
func NewMockMonthContractFrom(i beans.MonthContract) *MockMonthContract
NewMockMonthContractFrom creates a new mock of the MockMonthContract interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockMonthContract ¶
func NewStrictMockMonthContract() *MockMonthContract
NewStrictMockMonthContract creates a new mock of the MonthContract interface. All methods panic on invocation, unless overwritten.
func (*MockMonthContract) GetOrCreate ¶
func (m *MockMonthContract) GetOrCreate(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.MonthDate) (*beans.Month, []*beans.MonthCategory, beans.Amount, error)
GetOrCreate delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockMonthContract) SetCategoryAmount ¶
func (m *MockMonthContract) SetCategoryAmount(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.ID, v3 beans.ID, v4 beans.Amount) error
SetCategoryAmount delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockMonthRepository ¶
type MockMonthRepository struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *MonthRepositoryCreateFunc // GetFunc is an instance of a mock function object controlling the // behavior of the method Get. GetFunc *MonthRepositoryGetFunc // GetForBudgetFunc is an instance of a mock function object controlling // the behavior of the method GetForBudget. GetForBudgetFunc *MonthRepositoryGetForBudgetFunc // GetOrCreateFunc is an instance of a mock function object controlling // the behavior of the method GetOrCreate. GetOrCreateFunc *MonthRepositoryGetOrCreateFunc // UpdateFunc is an instance of a mock function object controlling the // behavior of the method Update. UpdateFunc *MonthRepositoryUpdateFunc }
MockMonthRepository is a mock implementation of the MonthRepository interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockMonthRepository ¶
func NewMockMonthRepository() *MockMonthRepository
NewMockMonthRepository creates a new mock of the MonthRepository interface. All methods return zero values for all results, unless overwritten.
func NewMockMonthRepositoryFrom ¶
func NewMockMonthRepositoryFrom(i beans.MonthRepository) *MockMonthRepository
NewMockMonthRepositoryFrom creates a new mock of the MockMonthRepository interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockMonthRepository ¶
func NewStrictMockMonthRepository() *MockMonthRepository
NewStrictMockMonthRepository creates a new mock of the MonthRepository interface. All methods panic on invocation, unless overwritten.
func (*MockMonthRepository) Create ¶
Create delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockMonthRepository) Get ¶
Get delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockMonthRepository) GetForBudget ¶
GetForBudget delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockPayeeContract ¶
type MockPayeeContract struct { // CreatePayeeFunc is an instance of a mock function object controlling // the behavior of the method CreatePayee. CreatePayeeFunc *PayeeContractCreatePayeeFunc // GetAllFunc is an instance of a mock function object controlling the // behavior of the method GetAll. GetAllFunc *PayeeContractGetAllFunc }
MockPayeeContract is a mock implementation of the PayeeContract interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockPayeeContract ¶
func NewMockPayeeContract() *MockPayeeContract
NewMockPayeeContract creates a new mock of the PayeeContract interface. All methods return zero values for all results, unless overwritten.
func NewMockPayeeContractFrom ¶
func NewMockPayeeContractFrom(i beans.PayeeContract) *MockPayeeContract
NewMockPayeeContractFrom creates a new mock of the MockPayeeContract interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockPayeeContract ¶
func NewStrictMockPayeeContract() *MockPayeeContract
NewStrictMockPayeeContract creates a new mock of the PayeeContract interface. All methods panic on invocation, unless overwritten.
func (*MockPayeeContract) CreatePayee ¶
func (m *MockPayeeContract) CreatePayee(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.Name) (*beans.Payee, error)
CreatePayee delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockPayeeContract) GetAll ¶
func (m *MockPayeeContract) GetAll(v0 context.Context, v1 *beans.BudgetAuthContext) ([]*beans.Payee, error)
GetAll delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockPayeeRepository ¶
type MockPayeeRepository struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *PayeeRepositoryCreateFunc // GetFunc is an instance of a mock function object controlling the // behavior of the method Get. GetFunc *PayeeRepositoryGetFunc // GetForBudgetFunc is an instance of a mock function object controlling // the behavior of the method GetForBudget. GetForBudgetFunc *PayeeRepositoryGetForBudgetFunc }
MockPayeeRepository is a mock implementation of the PayeeRepository interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockPayeeRepository ¶
func NewMockPayeeRepository() *MockPayeeRepository
NewMockPayeeRepository creates a new mock of the PayeeRepository interface. All methods return zero values for all results, unless overwritten.
func NewMockPayeeRepositoryFrom ¶
func NewMockPayeeRepositoryFrom(i beans.PayeeRepository) *MockPayeeRepository
NewMockPayeeRepositoryFrom creates a new mock of the MockPayeeRepository interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockPayeeRepository ¶
func NewStrictMockPayeeRepository() *MockPayeeRepository
NewStrictMockPayeeRepository creates a new mock of the PayeeRepository interface. All methods panic on invocation, unless overwritten.
func (*MockPayeeRepository) Create ¶
Create delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockPayeeRepository) Get ¶
Get delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockPayeeRepository) GetForBudget ¶
GetForBudget delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockSessionRepository ¶
type MockSessionRepository struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *SessionRepositoryCreateFunc // DeleteFunc is an instance of a mock function object controlling the // behavior of the method Delete. DeleteFunc *SessionRepositoryDeleteFunc // GetFunc is an instance of a mock function object controlling the // behavior of the method Get. GetFunc *SessionRepositoryGetFunc }
MockSessionRepository is a mock implementation of the SessionRepository interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockSessionRepository ¶
func NewMockSessionRepository() *MockSessionRepository
NewMockSessionRepository creates a new mock of the SessionRepository interface. All methods return zero values for all results, unless overwritten.
func NewMockSessionRepositoryFrom ¶
func NewMockSessionRepositoryFrom(i beans.SessionRepository) *MockSessionRepository
NewMockSessionRepositoryFrom creates a new mock of the MockSessionRepository interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockSessionRepository ¶
func NewStrictMockSessionRepository() *MockSessionRepository
NewStrictMockSessionRepository creates a new mock of the SessionRepository interface. All methods panic on invocation, unless overwritten.
func (*MockSessionRepository) Create ¶
Create delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockTransactionContract ¶
type MockTransactionContract struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *TransactionContractCreateFunc // GetAllFunc is an instance of a mock function object controlling the // behavior of the method GetAll. GetAllFunc *TransactionContractGetAllFunc // UpdateFunc is an instance of a mock function object controlling the // behavior of the method Update. UpdateFunc *TransactionContractUpdateFunc }
MockTransactionContract is a mock implementation of the TransactionContract interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockTransactionContract ¶
func NewMockTransactionContract() *MockTransactionContract
NewMockTransactionContract creates a new mock of the TransactionContract interface. All methods return zero values for all results, unless overwritten.
func NewMockTransactionContractFrom ¶
func NewMockTransactionContractFrom(i beans.TransactionContract) *MockTransactionContract
NewMockTransactionContractFrom creates a new mock of the MockTransactionContract interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockTransactionContract ¶
func NewStrictMockTransactionContract() *MockTransactionContract
NewStrictMockTransactionContract creates a new mock of the TransactionContract interface. All methods panic on invocation, unless overwritten.
func (*MockTransactionContract) Create ¶
func (m *MockTransactionContract) Create(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.TransactionCreateParams) (*beans.Transaction, error)
Create delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockTransactionContract) GetAll ¶
func (m *MockTransactionContract) GetAll(v0 context.Context, v1 *beans.BudgetAuthContext) ([]*beans.Transaction, error)
GetAll delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockTransactionContract) Update ¶
func (m *MockTransactionContract) Update(v0 context.Context, v1 *beans.BudgetAuthContext, v2 beans.TransactionUpdateParams) error
Update delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockTransactionRepository ¶
type MockTransactionRepository struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *TransactionRepositoryCreateFunc // GetFunc is an instance of a mock function object controlling the // behavior of the method Get. GetFunc *TransactionRepositoryGetFunc // GetForBudgetFunc is an instance of a mock function object controlling // the behavior of the method GetForBudget. GetForBudgetFunc *TransactionRepositoryGetForBudgetFunc // GetIncomeBetweenFunc is an instance of a mock function object // controlling the behavior of the method GetIncomeBetween. GetIncomeBetweenFunc *TransactionRepositoryGetIncomeBetweenFunc // UpdateFunc is an instance of a mock function object controlling the // behavior of the method Update. UpdateFunc *TransactionRepositoryUpdateFunc }
MockTransactionRepository is a mock implementation of the TransactionRepository interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockTransactionRepository ¶
func NewMockTransactionRepository() *MockTransactionRepository
NewMockTransactionRepository creates a new mock of the TransactionRepository interface. All methods return zero values for all results, unless overwritten.
func NewMockTransactionRepositoryFrom ¶
func NewMockTransactionRepositoryFrom(i beans.TransactionRepository) *MockTransactionRepository
NewMockTransactionRepositoryFrom creates a new mock of the MockTransactionRepository interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockTransactionRepository ¶
func NewStrictMockTransactionRepository() *MockTransactionRepository
NewStrictMockTransactionRepository creates a new mock of the TransactionRepository interface. All methods panic on invocation, unless overwritten.
func (*MockTransactionRepository) Create ¶
func (m *MockTransactionRepository) Create(v0 context.Context, v1 *beans.Transaction) error
Create delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockTransactionRepository) Get ¶
func (m *MockTransactionRepository) Get(v0 context.Context, v1 beans.ID) (*beans.Transaction, error)
Get delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockTransactionRepository) GetForBudget ¶
func (m *MockTransactionRepository) GetForBudget(v0 context.Context, v1 beans.ID) ([]*beans.Transaction, error)
GetForBudget delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockTransactionRepository) GetIncomeBetween ¶
func (m *MockTransactionRepository) GetIncomeBetween(v0 context.Context, v1 beans.ID, v2 beans.Date, v3 beans.Date) (beans.Amount, error)
GetIncomeBetween delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockTransactionRepository) Update ¶
func (m *MockTransactionRepository) Update(v0 context.Context, v1 *beans.Transaction) error
Update delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockTx ¶
type MockTx struct { // CommitFunc is an instance of a mock function object controlling the // behavior of the method Commit. CommitFunc *TxCommitFunc // RollbackFunc is an instance of a mock function object controlling the // behavior of the method Rollback. RollbackFunc *TxRollbackFunc }
MockTx is a mock implementation of the Tx interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockTx ¶
func NewMockTx() *MockTx
NewMockTx creates a new mock of the Tx interface. All methods return zero values for all results, unless overwritten.
func NewMockTxFrom ¶
NewMockTxFrom creates a new mock of the MockTx interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockTx ¶
func NewStrictMockTx() *MockTx
NewStrictMockTx creates a new mock of the Tx interface. All methods panic on invocation, unless overwritten.
type MockTxManager ¶
type MockTxManager struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *TxManagerCreateFunc }
MockTxManager is a mock implementation of the TxManager interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockTxManager ¶
func NewMockTxManager() *MockTxManager
NewMockTxManager creates a new mock of the TxManager interface. All methods return zero values for all results, unless overwritten.
func NewMockTxManagerFrom ¶
func NewMockTxManagerFrom(i beans.TxManager) *MockTxManager
NewMockTxManagerFrom creates a new mock of the MockTxManager interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockTxManager ¶
func NewStrictMockTxManager() *MockTxManager
NewStrictMockTxManager creates a new mock of the TxManager interface. All methods panic on invocation, unless overwritten.
type MockUserContract ¶
type MockUserContract struct { // GetMeFunc is an instance of a mock function object controlling the // behavior of the method GetMe. GetMeFunc *UserContractGetMeFunc // LoginFunc is an instance of a mock function object controlling the // behavior of the method Login. LoginFunc *UserContractLoginFunc // LogoutFunc is an instance of a mock function object controlling the // behavior of the method Logout. LogoutFunc *UserContractLogoutFunc // RegisterFunc is an instance of a mock function object controlling the // behavior of the method Register. RegisterFunc *UserContractRegisterFunc }
MockUserContract is a mock implementation of the UserContract interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockUserContract ¶
func NewMockUserContract() *MockUserContract
NewMockUserContract creates a new mock of the UserContract interface. All methods return zero values for all results, unless overwritten.
func NewMockUserContractFrom ¶
func NewMockUserContractFrom(i beans.UserContract) *MockUserContract
NewMockUserContractFrom creates a new mock of the MockUserContract interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockUserContract ¶
func NewStrictMockUserContract() *MockUserContract
NewStrictMockUserContract creates a new mock of the UserContract interface. All methods panic on invocation, unless overwritten.
func (*MockUserContract) GetMe ¶
func (m *MockUserContract) GetMe(v0 context.Context, v1 *beans.AuthContext) (*beans.User, error)
GetMe delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockUserContract) Login ¶
func (m *MockUserContract) Login(v0 context.Context, v1 beans.Username, v2 beans.Password) (*beans.Session, error)
Login delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockUserContract) Logout ¶
func (m *MockUserContract) Logout(v0 context.Context, v1 *beans.AuthContext) error
Logout delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockUserRepository ¶
type MockUserRepository struct { // CreateFunc is an instance of a mock function object controlling the // behavior of the method Create. CreateFunc *UserRepositoryCreateFunc // ExistsFunc is an instance of a mock function object controlling the // behavior of the method Exists. ExistsFunc *UserRepositoryExistsFunc // GetFunc is an instance of a mock function object controlling the // behavior of the method Get. GetFunc *UserRepositoryGetFunc // GetByUsernameFunc is an instance of a mock function object // controlling the behavior of the method GetByUsername. GetByUsernameFunc *UserRepositoryGetByUsernameFunc }
MockUserRepository is a mock implementation of the UserRepository interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockUserRepository ¶
func NewMockUserRepository() *MockUserRepository
NewMockUserRepository creates a new mock of the UserRepository interface. All methods return zero values for all results, unless overwritten.
func NewMockUserRepositoryFrom ¶
func NewMockUserRepositoryFrom(i beans.UserRepository) *MockUserRepository
NewMockUserRepositoryFrom creates a new mock of the MockUserRepository interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockUserRepository ¶
func NewStrictMockUserRepository() *MockUserRepository
NewStrictMockUserRepository creates a new mock of the UserRepository interface. All methods panic on invocation, unless overwritten.
func (*MockUserRepository) Create ¶
func (m *MockUserRepository) Create(v0 context.Context, v1 beans.ID, v2 beans.Username, v3 beans.PasswordHash) error
Create delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockUserRepository) Exists ¶
Exists delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockUserRepository) Get ¶
Get delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
func (*MockUserRepository) GetByUsername ¶
func (m *MockUserRepository) GetByUsername(v0 context.Context, v1 beans.Username) (*beans.User, error)
GetByUsername delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MockValidatable ¶
type MockValidatable struct { // ValidateFunc is an instance of a mock function object controlling the // behavior of the method Validate. ValidateFunc *ValidatableValidateFunc }
MockValidatable is a mock implementation of the Validatable interface (from the package github.com/bradenrayhorn/beans/beans) used for unit testing.
func NewMockValidatable ¶
func NewMockValidatable() *MockValidatable
NewMockValidatable creates a new mock of the Validatable interface. All methods return zero values for all results, unless overwritten.
func NewMockValidatableFrom ¶
func NewMockValidatableFrom(i beans.Validatable) *MockValidatable
NewMockValidatableFrom creates a new mock of the MockValidatable interface. All methods delegate to the given implementation, unless overwritten.
func NewStrictMockValidatable ¶
func NewStrictMockValidatable() *MockValidatable
NewStrictMockValidatable creates a new mock of the Validatable interface. All methods panic on invocation, unless overwritten.
func (*MockValidatable) Validate ¶
func (m *MockValidatable) Validate() error
Validate delegates to the next hook function in the queue and stores the parameter and result values of this invocation.
type MonthCategoryRepositoryCreateFunc ¶
type MonthCategoryRepositoryCreateFunc struct {
// contains filtered or unexported fields
}
MonthCategoryRepositoryCreateFunc describes the behavior when the Create method of the parent MockMonthCategoryRepository instance is invoked.
func (*MonthCategoryRepositoryCreateFunc) History ¶
func (f *MonthCategoryRepositoryCreateFunc) History() []MonthCategoryRepositoryCreateFuncCall
History returns a sequence of MonthCategoryRepositoryCreateFuncCall objects describing the invocations of this function.
func (*MonthCategoryRepositoryCreateFunc) PushHook ¶
func (f *MonthCategoryRepositoryCreateFunc) PushHook(hook func(context.Context, beans.Tx, *beans.MonthCategory) error)
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockMonthCategoryRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthCategoryRepositoryCreateFunc) PushReturn ¶
func (f *MonthCategoryRepositoryCreateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthCategoryRepositoryCreateFunc) SetDefaultHook ¶
func (f *MonthCategoryRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, beans.Tx, *beans.MonthCategory) error)
SetDefaultHook sets function that is called when the Create method of the parent MockMonthCategoryRepository instance is invoked and the hook queue is empty.
func (*MonthCategoryRepositoryCreateFunc) SetDefaultReturn ¶
func (f *MonthCategoryRepositoryCreateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthCategoryRepositoryCreateFuncCall ¶
type MonthCategoryRepositoryCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.Tx // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 *beans.MonthCategory // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
MonthCategoryRepositoryCreateFuncCall is an object that describes an invocation of method Create on an instance of MockMonthCategoryRepository.
func (MonthCategoryRepositoryCreateFuncCall) Args ¶
func (c MonthCategoryRepositoryCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthCategoryRepositoryCreateFuncCall) Results ¶
func (c MonthCategoryRepositoryCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MonthCategoryRepositoryGetAssignedInMonthFunc ¶
type MonthCategoryRepositoryGetAssignedInMonthFunc struct {
// contains filtered or unexported fields
}
MonthCategoryRepositoryGetAssignedInMonthFunc describes the behavior when the GetAssignedInMonth method of the parent MockMonthCategoryRepository instance is invoked.
func (*MonthCategoryRepositoryGetAssignedInMonthFunc) History ¶
func (f *MonthCategoryRepositoryGetAssignedInMonthFunc) History() []MonthCategoryRepositoryGetAssignedInMonthFuncCall
History returns a sequence of MonthCategoryRepositoryGetAssignedInMonthFuncCall objects describing the invocations of this function.
func (*MonthCategoryRepositoryGetAssignedInMonthFunc) PushHook ¶
func (f *MonthCategoryRepositoryGetAssignedInMonthFunc) PushHook(hook func(context.Context, beans.ID) (beans.Amount, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetAssignedInMonth method of the parent MockMonthCategoryRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthCategoryRepositoryGetAssignedInMonthFunc) PushReturn ¶
func (f *MonthCategoryRepositoryGetAssignedInMonthFunc) PushReturn(r0 beans.Amount, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthCategoryRepositoryGetAssignedInMonthFunc) SetDefaultHook ¶
func (f *MonthCategoryRepositoryGetAssignedInMonthFunc) SetDefaultHook(hook func(context.Context, beans.ID) (beans.Amount, error))
SetDefaultHook sets function that is called when the GetAssignedInMonth method of the parent MockMonthCategoryRepository instance is invoked and the hook queue is empty.
func (*MonthCategoryRepositoryGetAssignedInMonthFunc) SetDefaultReturn ¶
func (f *MonthCategoryRepositoryGetAssignedInMonthFunc) SetDefaultReturn(r0 beans.Amount, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthCategoryRepositoryGetAssignedInMonthFuncCall ¶
type MonthCategoryRepositoryGetAssignedInMonthFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 beans.Amount // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
MonthCategoryRepositoryGetAssignedInMonthFuncCall is an object that describes an invocation of method GetAssignedInMonth on an instance of MockMonthCategoryRepository.
func (MonthCategoryRepositoryGetAssignedInMonthFuncCall) Args ¶
func (c MonthCategoryRepositoryGetAssignedInMonthFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthCategoryRepositoryGetAssignedInMonthFuncCall) Results ¶
func (c MonthCategoryRepositoryGetAssignedInMonthFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MonthCategoryRepositoryGetForMonthFunc ¶
type MonthCategoryRepositoryGetForMonthFunc struct {
// contains filtered or unexported fields
}
MonthCategoryRepositoryGetForMonthFunc describes the behavior when the GetForMonth method of the parent MockMonthCategoryRepository instance is invoked.
func (*MonthCategoryRepositoryGetForMonthFunc) History ¶
func (f *MonthCategoryRepositoryGetForMonthFunc) History() []MonthCategoryRepositoryGetForMonthFuncCall
History returns a sequence of MonthCategoryRepositoryGetForMonthFuncCall objects describing the invocations of this function.
func (*MonthCategoryRepositoryGetForMonthFunc) PushHook ¶
func (f *MonthCategoryRepositoryGetForMonthFunc) PushHook(hook func(context.Context, *beans.Month) ([]*beans.MonthCategory, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetForMonth method of the parent MockMonthCategoryRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthCategoryRepositoryGetForMonthFunc) PushReturn ¶
func (f *MonthCategoryRepositoryGetForMonthFunc) PushReturn(r0 []*beans.MonthCategory, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthCategoryRepositoryGetForMonthFunc) SetDefaultHook ¶
func (f *MonthCategoryRepositoryGetForMonthFunc) SetDefaultHook(hook func(context.Context, *beans.Month) ([]*beans.MonthCategory, error))
SetDefaultHook sets function that is called when the GetForMonth method of the parent MockMonthCategoryRepository instance is invoked and the hook queue is empty.
func (*MonthCategoryRepositoryGetForMonthFunc) SetDefaultReturn ¶
func (f *MonthCategoryRepositoryGetForMonthFunc) SetDefaultReturn(r0 []*beans.MonthCategory, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthCategoryRepositoryGetForMonthFuncCall ¶
type MonthCategoryRepositoryGetForMonthFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.Month // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.MonthCategory // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
MonthCategoryRepositoryGetForMonthFuncCall is an object that describes an invocation of method GetForMonth on an instance of MockMonthCategoryRepository.
func (MonthCategoryRepositoryGetForMonthFuncCall) Args ¶
func (c MonthCategoryRepositoryGetForMonthFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthCategoryRepositoryGetForMonthFuncCall) Results ¶
func (c MonthCategoryRepositoryGetForMonthFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MonthCategoryRepositoryGetOrCreateFunc ¶
type MonthCategoryRepositoryGetOrCreateFunc struct {
// contains filtered or unexported fields
}
MonthCategoryRepositoryGetOrCreateFunc describes the behavior when the GetOrCreate method of the parent MockMonthCategoryRepository instance is invoked.
func (*MonthCategoryRepositoryGetOrCreateFunc) History ¶
func (f *MonthCategoryRepositoryGetOrCreateFunc) History() []MonthCategoryRepositoryGetOrCreateFuncCall
History returns a sequence of MonthCategoryRepositoryGetOrCreateFuncCall objects describing the invocations of this function.
func (*MonthCategoryRepositoryGetOrCreateFunc) PushHook ¶
func (f *MonthCategoryRepositoryGetOrCreateFunc) PushHook(hook func(context.Context, beans.Tx, beans.ID, beans.ID) (*beans.MonthCategory, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetOrCreate method of the parent MockMonthCategoryRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthCategoryRepositoryGetOrCreateFunc) PushReturn ¶
func (f *MonthCategoryRepositoryGetOrCreateFunc) PushReturn(r0 *beans.MonthCategory, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthCategoryRepositoryGetOrCreateFunc) SetDefaultHook ¶
func (f *MonthCategoryRepositoryGetOrCreateFunc) SetDefaultHook(hook func(context.Context, beans.Tx, beans.ID, beans.ID) (*beans.MonthCategory, error))
SetDefaultHook sets function that is called when the GetOrCreate method of the parent MockMonthCategoryRepository instance is invoked and the hook queue is empty.
func (*MonthCategoryRepositoryGetOrCreateFunc) SetDefaultReturn ¶
func (f *MonthCategoryRepositoryGetOrCreateFunc) SetDefaultReturn(r0 *beans.MonthCategory, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthCategoryRepositoryGetOrCreateFuncCall ¶
type MonthCategoryRepositoryGetOrCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.Tx // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.ID // Arg3 is the value of the 4th argument passed to this method // invocation. Arg3 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.MonthCategory // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
MonthCategoryRepositoryGetOrCreateFuncCall is an object that describes an invocation of method GetOrCreate on an instance of MockMonthCategoryRepository.
func (MonthCategoryRepositoryGetOrCreateFuncCall) Args ¶
func (c MonthCategoryRepositoryGetOrCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthCategoryRepositoryGetOrCreateFuncCall) Results ¶
func (c MonthCategoryRepositoryGetOrCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MonthCategoryRepositoryUpdateAmountFunc ¶
type MonthCategoryRepositoryUpdateAmountFunc struct {
// contains filtered or unexported fields
}
MonthCategoryRepositoryUpdateAmountFunc describes the behavior when the UpdateAmount method of the parent MockMonthCategoryRepository instance is invoked.
func (*MonthCategoryRepositoryUpdateAmountFunc) History ¶
func (f *MonthCategoryRepositoryUpdateAmountFunc) History() []MonthCategoryRepositoryUpdateAmountFuncCall
History returns a sequence of MonthCategoryRepositoryUpdateAmountFuncCall objects describing the invocations of this function.
func (*MonthCategoryRepositoryUpdateAmountFunc) PushHook ¶
func (f *MonthCategoryRepositoryUpdateAmountFunc) PushHook(hook func(context.Context, beans.ID, beans.Amount) error)
PushHook adds a function to the end of hook queue. Each invocation of the UpdateAmount method of the parent MockMonthCategoryRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthCategoryRepositoryUpdateAmountFunc) PushReturn ¶
func (f *MonthCategoryRepositoryUpdateAmountFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthCategoryRepositoryUpdateAmountFunc) SetDefaultHook ¶
func (f *MonthCategoryRepositoryUpdateAmountFunc) SetDefaultHook(hook func(context.Context, beans.ID, beans.Amount) error)
SetDefaultHook sets function that is called when the UpdateAmount method of the parent MockMonthCategoryRepository instance is invoked and the hook queue is empty.
func (*MonthCategoryRepositoryUpdateAmountFunc) SetDefaultReturn ¶
func (f *MonthCategoryRepositoryUpdateAmountFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthCategoryRepositoryUpdateAmountFuncCall ¶
type MonthCategoryRepositoryUpdateAmountFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.Amount // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
MonthCategoryRepositoryUpdateAmountFuncCall is an object that describes an invocation of method UpdateAmount on an instance of MockMonthCategoryRepository.
func (MonthCategoryRepositoryUpdateAmountFuncCall) Args ¶
func (c MonthCategoryRepositoryUpdateAmountFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthCategoryRepositoryUpdateAmountFuncCall) Results ¶
func (c MonthCategoryRepositoryUpdateAmountFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MonthContractGetOrCreateFunc ¶
type MonthContractGetOrCreateFunc struct {
// contains filtered or unexported fields
}
MonthContractGetOrCreateFunc describes the behavior when the GetOrCreate method of the parent MockMonthContract instance is invoked.
func (*MonthContractGetOrCreateFunc) History ¶
func (f *MonthContractGetOrCreateFunc) History() []MonthContractGetOrCreateFuncCall
History returns a sequence of MonthContractGetOrCreateFuncCall objects describing the invocations of this function.
func (*MonthContractGetOrCreateFunc) PushHook ¶
func (f *MonthContractGetOrCreateFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext, beans.MonthDate) (*beans.Month, []*beans.MonthCategory, beans.Amount, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetOrCreate method of the parent MockMonthContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthContractGetOrCreateFunc) PushReturn ¶
func (f *MonthContractGetOrCreateFunc) PushReturn(r0 *beans.Month, r1 []*beans.MonthCategory, r2 beans.Amount, r3 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthContractGetOrCreateFunc) SetDefaultHook ¶
func (f *MonthContractGetOrCreateFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext, beans.MonthDate) (*beans.Month, []*beans.MonthCategory, beans.Amount, error))
SetDefaultHook sets function that is called when the GetOrCreate method of the parent MockMonthContract instance is invoked and the hook queue is empty.
func (*MonthContractGetOrCreateFunc) SetDefaultReturn ¶
func (f *MonthContractGetOrCreateFunc) SetDefaultReturn(r0 *beans.Month, r1 []*beans.MonthCategory, r2 beans.Amount, r3 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthContractGetOrCreateFuncCall ¶
type MonthContractGetOrCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.MonthDate // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Month // Result1 is the value of the 2nd result returned from this method // invocation. Result1 []*beans.MonthCategory // Result2 is the value of the 3rd result returned from this method // invocation. Result2 beans.Amount // Result3 is the value of the 4th result returned from this method // invocation. Result3 error }
MonthContractGetOrCreateFuncCall is an object that describes an invocation of method GetOrCreate on an instance of MockMonthContract.
func (MonthContractGetOrCreateFuncCall) Args ¶
func (c MonthContractGetOrCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthContractGetOrCreateFuncCall) Results ¶
func (c MonthContractGetOrCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MonthContractSetCategoryAmountFunc ¶
type MonthContractSetCategoryAmountFunc struct {
// contains filtered or unexported fields
}
MonthContractSetCategoryAmountFunc describes the behavior when the SetCategoryAmount method of the parent MockMonthContract instance is invoked.
func (*MonthContractSetCategoryAmountFunc) History ¶
func (f *MonthContractSetCategoryAmountFunc) History() []MonthContractSetCategoryAmountFuncCall
History returns a sequence of MonthContractSetCategoryAmountFuncCall objects describing the invocations of this function.
func (*MonthContractSetCategoryAmountFunc) PushHook ¶
func (f *MonthContractSetCategoryAmountFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext, beans.ID, beans.ID, beans.Amount) error)
PushHook adds a function to the end of hook queue. Each invocation of the SetCategoryAmount method of the parent MockMonthContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthContractSetCategoryAmountFunc) PushReturn ¶
func (f *MonthContractSetCategoryAmountFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthContractSetCategoryAmountFunc) SetDefaultHook ¶
func (f *MonthContractSetCategoryAmountFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext, beans.ID, beans.ID, beans.Amount) error)
SetDefaultHook sets function that is called when the SetCategoryAmount method of the parent MockMonthContract instance is invoked and the hook queue is empty.
func (*MonthContractSetCategoryAmountFunc) SetDefaultReturn ¶
func (f *MonthContractSetCategoryAmountFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthContractSetCategoryAmountFuncCall ¶
type MonthContractSetCategoryAmountFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.ID // Arg3 is the value of the 4th argument passed to this method // invocation. Arg3 beans.ID // Arg4 is the value of the 5th argument passed to this method // invocation. Arg4 beans.Amount // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
MonthContractSetCategoryAmountFuncCall is an object that describes an invocation of method SetCategoryAmount on an instance of MockMonthContract.
func (MonthContractSetCategoryAmountFuncCall) Args ¶
func (c MonthContractSetCategoryAmountFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthContractSetCategoryAmountFuncCall) Results ¶
func (c MonthContractSetCategoryAmountFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MonthContractUpdateFunc ¶
type MonthContractUpdateFunc struct {
// contains filtered or unexported fields
}
MonthContractUpdateFunc describes the behavior when the Update method of the parent MockMonthContract instance is invoked.
func (*MonthContractUpdateFunc) History ¶
func (f *MonthContractUpdateFunc) History() []MonthContractUpdateFuncCall
History returns a sequence of MonthContractUpdateFuncCall objects describing the invocations of this function.
func (*MonthContractUpdateFunc) PushHook ¶
func (f *MonthContractUpdateFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext, beans.ID, beans.Amount) error)
PushHook adds a function to the end of hook queue. Each invocation of the Update method of the parent MockMonthContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthContractUpdateFunc) PushReturn ¶
func (f *MonthContractUpdateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthContractUpdateFunc) SetDefaultHook ¶
func (f *MonthContractUpdateFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext, beans.ID, beans.Amount) error)
SetDefaultHook sets function that is called when the Update method of the parent MockMonthContract instance is invoked and the hook queue is empty.
func (*MonthContractUpdateFunc) SetDefaultReturn ¶
func (f *MonthContractUpdateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthContractUpdateFuncCall ¶
type MonthContractUpdateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.ID // Arg3 is the value of the 4th argument passed to this method // invocation. Arg3 beans.Amount // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
MonthContractUpdateFuncCall is an object that describes an invocation of method Update on an instance of MockMonthContract.
func (MonthContractUpdateFuncCall) Args ¶
func (c MonthContractUpdateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthContractUpdateFuncCall) Results ¶
func (c MonthContractUpdateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MonthRepositoryCreateFunc ¶
type MonthRepositoryCreateFunc struct {
// contains filtered or unexported fields
}
MonthRepositoryCreateFunc describes the behavior when the Create method of the parent MockMonthRepository instance is invoked.
func (*MonthRepositoryCreateFunc) History ¶
func (f *MonthRepositoryCreateFunc) History() []MonthRepositoryCreateFuncCall
History returns a sequence of MonthRepositoryCreateFuncCall objects describing the invocations of this function.
func (*MonthRepositoryCreateFunc) PushHook ¶
func (f *MonthRepositoryCreateFunc) PushHook(hook func(context.Context, beans.Tx, *beans.Month) error)
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockMonthRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthRepositoryCreateFunc) PushReturn ¶
func (f *MonthRepositoryCreateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthRepositoryCreateFunc) SetDefaultHook ¶
func (f *MonthRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, beans.Tx, *beans.Month) error)
SetDefaultHook sets function that is called when the Create method of the parent MockMonthRepository instance is invoked and the hook queue is empty.
func (*MonthRepositoryCreateFunc) SetDefaultReturn ¶
func (f *MonthRepositoryCreateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthRepositoryCreateFuncCall ¶
type MonthRepositoryCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.Tx // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 *beans.Month // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
MonthRepositoryCreateFuncCall is an object that describes an invocation of method Create on an instance of MockMonthRepository.
func (MonthRepositoryCreateFuncCall) Args ¶
func (c MonthRepositoryCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthRepositoryCreateFuncCall) Results ¶
func (c MonthRepositoryCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MonthRepositoryGetForBudgetFunc ¶
type MonthRepositoryGetForBudgetFunc struct {
// contains filtered or unexported fields
}
MonthRepositoryGetForBudgetFunc describes the behavior when the GetForBudget method of the parent MockMonthRepository instance is invoked.
func (*MonthRepositoryGetForBudgetFunc) History ¶
func (f *MonthRepositoryGetForBudgetFunc) History() []MonthRepositoryGetForBudgetFuncCall
History returns a sequence of MonthRepositoryGetForBudgetFuncCall objects describing the invocations of this function.
func (*MonthRepositoryGetForBudgetFunc) PushHook ¶
func (f *MonthRepositoryGetForBudgetFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.Month, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetForBudget method of the parent MockMonthRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthRepositoryGetForBudgetFunc) PushReturn ¶
func (f *MonthRepositoryGetForBudgetFunc) PushReturn(r0 []*beans.Month, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthRepositoryGetForBudgetFunc) SetDefaultHook ¶
func (f *MonthRepositoryGetForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.Month, error))
SetDefaultHook sets function that is called when the GetForBudget method of the parent MockMonthRepository instance is invoked and the hook queue is empty.
func (*MonthRepositoryGetForBudgetFunc) SetDefaultReturn ¶
func (f *MonthRepositoryGetForBudgetFunc) SetDefaultReturn(r0 []*beans.Month, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthRepositoryGetForBudgetFuncCall ¶
type MonthRepositoryGetForBudgetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.Month // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
MonthRepositoryGetForBudgetFuncCall is an object that describes an invocation of method GetForBudget on an instance of MockMonthRepository.
func (MonthRepositoryGetForBudgetFuncCall) Args ¶
func (c MonthRepositoryGetForBudgetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthRepositoryGetForBudgetFuncCall) Results ¶
func (c MonthRepositoryGetForBudgetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MonthRepositoryGetFunc ¶
type MonthRepositoryGetFunc struct {
// contains filtered or unexported fields
}
MonthRepositoryGetFunc describes the behavior when the Get method of the parent MockMonthRepository instance is invoked.
func (*MonthRepositoryGetFunc) History ¶
func (f *MonthRepositoryGetFunc) History() []MonthRepositoryGetFuncCall
History returns a sequence of MonthRepositoryGetFuncCall objects describing the invocations of this function.
func (*MonthRepositoryGetFunc) PushHook ¶
func (f *MonthRepositoryGetFunc) PushHook(hook func(context.Context, beans.ID) (*beans.Month, error))
PushHook adds a function to the end of hook queue. Each invocation of the Get method of the parent MockMonthRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthRepositoryGetFunc) PushReturn ¶
func (f *MonthRepositoryGetFunc) PushReturn(r0 *beans.Month, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthRepositoryGetFunc) SetDefaultHook ¶
func (f *MonthRepositoryGetFunc) SetDefaultHook(hook func(context.Context, beans.ID) (*beans.Month, error))
SetDefaultHook sets function that is called when the Get method of the parent MockMonthRepository instance is invoked and the hook queue is empty.
func (*MonthRepositoryGetFunc) SetDefaultReturn ¶
func (f *MonthRepositoryGetFunc) SetDefaultReturn(r0 *beans.Month, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthRepositoryGetFuncCall ¶
type MonthRepositoryGetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Month // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
MonthRepositoryGetFuncCall is an object that describes an invocation of method Get on an instance of MockMonthRepository.
func (MonthRepositoryGetFuncCall) Args ¶
func (c MonthRepositoryGetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthRepositoryGetFuncCall) Results ¶
func (c MonthRepositoryGetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MonthRepositoryGetOrCreateFunc ¶
type MonthRepositoryGetOrCreateFunc struct {
// contains filtered or unexported fields
}
MonthRepositoryGetOrCreateFunc describes the behavior when the GetOrCreate method of the parent MockMonthRepository instance is invoked.
func (*MonthRepositoryGetOrCreateFunc) History ¶
func (f *MonthRepositoryGetOrCreateFunc) History() []MonthRepositoryGetOrCreateFuncCall
History returns a sequence of MonthRepositoryGetOrCreateFuncCall objects describing the invocations of this function.
func (*MonthRepositoryGetOrCreateFunc) PushHook ¶
func (f *MonthRepositoryGetOrCreateFunc) PushHook(hook func(context.Context, beans.Tx, beans.ID, beans.MonthDate) (*beans.Month, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetOrCreate method of the parent MockMonthRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthRepositoryGetOrCreateFunc) PushReturn ¶
func (f *MonthRepositoryGetOrCreateFunc) PushReturn(r0 *beans.Month, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthRepositoryGetOrCreateFunc) SetDefaultHook ¶
func (f *MonthRepositoryGetOrCreateFunc) SetDefaultHook(hook func(context.Context, beans.Tx, beans.ID, beans.MonthDate) (*beans.Month, error))
SetDefaultHook sets function that is called when the GetOrCreate method of the parent MockMonthRepository instance is invoked and the hook queue is empty.
func (*MonthRepositoryGetOrCreateFunc) SetDefaultReturn ¶
func (f *MonthRepositoryGetOrCreateFunc) SetDefaultReturn(r0 *beans.Month, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthRepositoryGetOrCreateFuncCall ¶
type MonthRepositoryGetOrCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.Tx // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.ID // Arg3 is the value of the 4th argument passed to this method // invocation. Arg3 beans.MonthDate // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Month // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
MonthRepositoryGetOrCreateFuncCall is an object that describes an invocation of method GetOrCreate on an instance of MockMonthRepository.
func (MonthRepositoryGetOrCreateFuncCall) Args ¶
func (c MonthRepositoryGetOrCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthRepositoryGetOrCreateFuncCall) Results ¶
func (c MonthRepositoryGetOrCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type MonthRepositoryUpdateFunc ¶
type MonthRepositoryUpdateFunc struct {
// contains filtered or unexported fields
}
MonthRepositoryUpdateFunc describes the behavior when the Update method of the parent MockMonthRepository instance is invoked.
func (*MonthRepositoryUpdateFunc) History ¶
func (f *MonthRepositoryUpdateFunc) History() []MonthRepositoryUpdateFuncCall
History returns a sequence of MonthRepositoryUpdateFuncCall objects describing the invocations of this function.
func (*MonthRepositoryUpdateFunc) PushHook ¶
PushHook adds a function to the end of hook queue. Each invocation of the Update method of the parent MockMonthRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*MonthRepositoryUpdateFunc) PushReturn ¶
func (f *MonthRepositoryUpdateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*MonthRepositoryUpdateFunc) SetDefaultHook ¶
SetDefaultHook sets function that is called when the Update method of the parent MockMonthRepository instance is invoked and the hook queue is empty.
func (*MonthRepositoryUpdateFunc) SetDefaultReturn ¶
func (f *MonthRepositoryUpdateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type MonthRepositoryUpdateFuncCall ¶
type MonthRepositoryUpdateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.Month // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
MonthRepositoryUpdateFuncCall is an object that describes an invocation of method Update on an instance of MockMonthRepository.
func (MonthRepositoryUpdateFuncCall) Args ¶
func (c MonthRepositoryUpdateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (MonthRepositoryUpdateFuncCall) Results ¶
func (c MonthRepositoryUpdateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type PayeeContractCreatePayeeFunc ¶
type PayeeContractCreatePayeeFunc struct {
// contains filtered or unexported fields
}
PayeeContractCreatePayeeFunc describes the behavior when the CreatePayee method of the parent MockPayeeContract instance is invoked.
func (*PayeeContractCreatePayeeFunc) History ¶
func (f *PayeeContractCreatePayeeFunc) History() []PayeeContractCreatePayeeFuncCall
History returns a sequence of PayeeContractCreatePayeeFuncCall objects describing the invocations of this function.
func (*PayeeContractCreatePayeeFunc) PushHook ¶
func (f *PayeeContractCreatePayeeFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext, beans.Name) (*beans.Payee, error))
PushHook adds a function to the end of hook queue. Each invocation of the CreatePayee method of the parent MockPayeeContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*PayeeContractCreatePayeeFunc) PushReturn ¶
func (f *PayeeContractCreatePayeeFunc) PushReturn(r0 *beans.Payee, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*PayeeContractCreatePayeeFunc) SetDefaultHook ¶
func (f *PayeeContractCreatePayeeFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext, beans.Name) (*beans.Payee, error))
SetDefaultHook sets function that is called when the CreatePayee method of the parent MockPayeeContract instance is invoked and the hook queue is empty.
func (*PayeeContractCreatePayeeFunc) SetDefaultReturn ¶
func (f *PayeeContractCreatePayeeFunc) SetDefaultReturn(r0 *beans.Payee, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type PayeeContractCreatePayeeFuncCall ¶
type PayeeContractCreatePayeeFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.Name // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Payee // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
PayeeContractCreatePayeeFuncCall is an object that describes an invocation of method CreatePayee on an instance of MockPayeeContract.
func (PayeeContractCreatePayeeFuncCall) Args ¶
func (c PayeeContractCreatePayeeFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (PayeeContractCreatePayeeFuncCall) Results ¶
func (c PayeeContractCreatePayeeFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type PayeeContractGetAllFunc ¶
type PayeeContractGetAllFunc struct {
// contains filtered or unexported fields
}
PayeeContractGetAllFunc describes the behavior when the GetAll method of the parent MockPayeeContract instance is invoked.
func (*PayeeContractGetAllFunc) History ¶
func (f *PayeeContractGetAllFunc) History() []PayeeContractGetAllFuncCall
History returns a sequence of PayeeContractGetAllFuncCall objects describing the invocations of this function.
func (*PayeeContractGetAllFunc) PushHook ¶
func (f *PayeeContractGetAllFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext) ([]*beans.Payee, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetAll method of the parent MockPayeeContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*PayeeContractGetAllFunc) PushReturn ¶
func (f *PayeeContractGetAllFunc) PushReturn(r0 []*beans.Payee, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*PayeeContractGetAllFunc) SetDefaultHook ¶
func (f *PayeeContractGetAllFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext) ([]*beans.Payee, error))
SetDefaultHook sets function that is called when the GetAll method of the parent MockPayeeContract instance is invoked and the hook queue is empty.
func (*PayeeContractGetAllFunc) SetDefaultReturn ¶
func (f *PayeeContractGetAllFunc) SetDefaultReturn(r0 []*beans.Payee, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type PayeeContractGetAllFuncCall ¶
type PayeeContractGetAllFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.Payee // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
PayeeContractGetAllFuncCall is an object that describes an invocation of method GetAll on an instance of MockPayeeContract.
func (PayeeContractGetAllFuncCall) Args ¶
func (c PayeeContractGetAllFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (PayeeContractGetAllFuncCall) Results ¶
func (c PayeeContractGetAllFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type PayeeRepositoryCreateFunc ¶
type PayeeRepositoryCreateFunc struct {
// contains filtered or unexported fields
}
PayeeRepositoryCreateFunc describes the behavior when the Create method of the parent MockPayeeRepository instance is invoked.
func (*PayeeRepositoryCreateFunc) History ¶
func (f *PayeeRepositoryCreateFunc) History() []PayeeRepositoryCreateFuncCall
History returns a sequence of PayeeRepositoryCreateFuncCall objects describing the invocations of this function.
func (*PayeeRepositoryCreateFunc) PushHook ¶
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockPayeeRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*PayeeRepositoryCreateFunc) PushReturn ¶
func (f *PayeeRepositoryCreateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*PayeeRepositoryCreateFunc) SetDefaultHook ¶
SetDefaultHook sets function that is called when the Create method of the parent MockPayeeRepository instance is invoked and the hook queue is empty.
func (*PayeeRepositoryCreateFunc) SetDefaultReturn ¶
func (f *PayeeRepositoryCreateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type PayeeRepositoryCreateFuncCall ¶
type PayeeRepositoryCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.Payee // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
PayeeRepositoryCreateFuncCall is an object that describes an invocation of method Create on an instance of MockPayeeRepository.
func (PayeeRepositoryCreateFuncCall) Args ¶
func (c PayeeRepositoryCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (PayeeRepositoryCreateFuncCall) Results ¶
func (c PayeeRepositoryCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type PayeeRepositoryGetForBudgetFunc ¶
type PayeeRepositoryGetForBudgetFunc struct {
// contains filtered or unexported fields
}
PayeeRepositoryGetForBudgetFunc describes the behavior when the GetForBudget method of the parent MockPayeeRepository instance is invoked.
func (*PayeeRepositoryGetForBudgetFunc) History ¶
func (f *PayeeRepositoryGetForBudgetFunc) History() []PayeeRepositoryGetForBudgetFuncCall
History returns a sequence of PayeeRepositoryGetForBudgetFuncCall objects describing the invocations of this function.
func (*PayeeRepositoryGetForBudgetFunc) PushHook ¶
func (f *PayeeRepositoryGetForBudgetFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.Payee, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetForBudget method of the parent MockPayeeRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*PayeeRepositoryGetForBudgetFunc) PushReturn ¶
func (f *PayeeRepositoryGetForBudgetFunc) PushReturn(r0 []*beans.Payee, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*PayeeRepositoryGetForBudgetFunc) SetDefaultHook ¶
func (f *PayeeRepositoryGetForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.Payee, error))
SetDefaultHook sets function that is called when the GetForBudget method of the parent MockPayeeRepository instance is invoked and the hook queue is empty.
func (*PayeeRepositoryGetForBudgetFunc) SetDefaultReturn ¶
func (f *PayeeRepositoryGetForBudgetFunc) SetDefaultReturn(r0 []*beans.Payee, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type PayeeRepositoryGetForBudgetFuncCall ¶
type PayeeRepositoryGetForBudgetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.Payee // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
PayeeRepositoryGetForBudgetFuncCall is an object that describes an invocation of method GetForBudget on an instance of MockPayeeRepository.
func (PayeeRepositoryGetForBudgetFuncCall) Args ¶
func (c PayeeRepositoryGetForBudgetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (PayeeRepositoryGetForBudgetFuncCall) Results ¶
func (c PayeeRepositoryGetForBudgetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type PayeeRepositoryGetFunc ¶
type PayeeRepositoryGetFunc struct {
// contains filtered or unexported fields
}
PayeeRepositoryGetFunc describes the behavior when the Get method of the parent MockPayeeRepository instance is invoked.
func (*PayeeRepositoryGetFunc) History ¶
func (f *PayeeRepositoryGetFunc) History() []PayeeRepositoryGetFuncCall
History returns a sequence of PayeeRepositoryGetFuncCall objects describing the invocations of this function.
func (*PayeeRepositoryGetFunc) PushHook ¶
func (f *PayeeRepositoryGetFunc) PushHook(hook func(context.Context, beans.ID) (*beans.Payee, error))
PushHook adds a function to the end of hook queue. Each invocation of the Get method of the parent MockPayeeRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*PayeeRepositoryGetFunc) PushReturn ¶
func (f *PayeeRepositoryGetFunc) PushReturn(r0 *beans.Payee, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*PayeeRepositoryGetFunc) SetDefaultHook ¶
func (f *PayeeRepositoryGetFunc) SetDefaultHook(hook func(context.Context, beans.ID) (*beans.Payee, error))
SetDefaultHook sets function that is called when the Get method of the parent MockPayeeRepository instance is invoked and the hook queue is empty.
func (*PayeeRepositoryGetFunc) SetDefaultReturn ¶
func (f *PayeeRepositoryGetFunc) SetDefaultReturn(r0 *beans.Payee, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type PayeeRepositoryGetFuncCall ¶
type PayeeRepositoryGetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Payee // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
PayeeRepositoryGetFuncCall is an object that describes an invocation of method Get on an instance of MockPayeeRepository.
func (PayeeRepositoryGetFuncCall) Args ¶
func (c PayeeRepositoryGetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (PayeeRepositoryGetFuncCall) Results ¶
func (c PayeeRepositoryGetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type SessionRepositoryCreateFunc ¶
type SessionRepositoryCreateFunc struct {
// contains filtered or unexported fields
}
SessionRepositoryCreateFunc describes the behavior when the Create method of the parent MockSessionRepository instance is invoked.
func (*SessionRepositoryCreateFunc) History ¶
func (f *SessionRepositoryCreateFunc) History() []SessionRepositoryCreateFuncCall
History returns a sequence of SessionRepositoryCreateFuncCall objects describing the invocations of this function.
func (*SessionRepositoryCreateFunc) PushHook ¶
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockSessionRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*SessionRepositoryCreateFunc) PushReturn ¶
func (f *SessionRepositoryCreateFunc) PushReturn(r0 *beans.Session, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*SessionRepositoryCreateFunc) SetDefaultHook ¶
SetDefaultHook sets function that is called when the Create method of the parent MockSessionRepository instance is invoked and the hook queue is empty.
func (*SessionRepositoryCreateFunc) SetDefaultReturn ¶
func (f *SessionRepositoryCreateFunc) SetDefaultReturn(r0 *beans.Session, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type SessionRepositoryCreateFuncCall ¶
type SessionRepositoryCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Session // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
SessionRepositoryCreateFuncCall is an object that describes an invocation of method Create on an instance of MockSessionRepository.
func (SessionRepositoryCreateFuncCall) Args ¶
func (c SessionRepositoryCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (SessionRepositoryCreateFuncCall) Results ¶
func (c SessionRepositoryCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type SessionRepositoryDeleteFunc ¶
type SessionRepositoryDeleteFunc struct {
// contains filtered or unexported fields
}
SessionRepositoryDeleteFunc describes the behavior when the Delete method of the parent MockSessionRepository instance is invoked.
func (*SessionRepositoryDeleteFunc) History ¶
func (f *SessionRepositoryDeleteFunc) History() []SessionRepositoryDeleteFuncCall
History returns a sequence of SessionRepositoryDeleteFuncCall objects describing the invocations of this function.
func (*SessionRepositoryDeleteFunc) PushHook ¶
func (f *SessionRepositoryDeleteFunc) PushHook(hook func(beans.SessionID) error)
PushHook adds a function to the end of hook queue. Each invocation of the Delete method of the parent MockSessionRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*SessionRepositoryDeleteFunc) PushReturn ¶
func (f *SessionRepositoryDeleteFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*SessionRepositoryDeleteFunc) SetDefaultHook ¶
func (f *SessionRepositoryDeleteFunc) SetDefaultHook(hook func(beans.SessionID) error)
SetDefaultHook sets function that is called when the Delete method of the parent MockSessionRepository instance is invoked and the hook queue is empty.
func (*SessionRepositoryDeleteFunc) SetDefaultReturn ¶
func (f *SessionRepositoryDeleteFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type SessionRepositoryDeleteFuncCall ¶
type SessionRepositoryDeleteFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 beans.SessionID // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
SessionRepositoryDeleteFuncCall is an object that describes an invocation of method Delete on an instance of MockSessionRepository.
func (SessionRepositoryDeleteFuncCall) Args ¶
func (c SessionRepositoryDeleteFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (SessionRepositoryDeleteFuncCall) Results ¶
func (c SessionRepositoryDeleteFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type SessionRepositoryGetFunc ¶
type SessionRepositoryGetFunc struct {
// contains filtered or unexported fields
}
SessionRepositoryGetFunc describes the behavior when the Get method of the parent MockSessionRepository instance is invoked.
func (*SessionRepositoryGetFunc) History ¶
func (f *SessionRepositoryGetFunc) History() []SessionRepositoryGetFuncCall
History returns a sequence of SessionRepositoryGetFuncCall objects describing the invocations of this function.
func (*SessionRepositoryGetFunc) PushHook ¶
PushHook adds a function to the end of hook queue. Each invocation of the Get method of the parent MockSessionRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*SessionRepositoryGetFunc) PushReturn ¶
func (f *SessionRepositoryGetFunc) PushReturn(r0 *beans.Session, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*SessionRepositoryGetFunc) SetDefaultHook ¶
func (f *SessionRepositoryGetFunc) SetDefaultHook(hook func(beans.SessionID) (*beans.Session, error))
SetDefaultHook sets function that is called when the Get method of the parent MockSessionRepository instance is invoked and the hook queue is empty.
func (*SessionRepositoryGetFunc) SetDefaultReturn ¶
func (f *SessionRepositoryGetFunc) SetDefaultReturn(r0 *beans.Session, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type SessionRepositoryGetFuncCall ¶
type SessionRepositoryGetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 beans.SessionID // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Session // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
SessionRepositoryGetFuncCall is an object that describes an invocation of method Get on an instance of MockSessionRepository.
func (SessionRepositoryGetFuncCall) Args ¶
func (c SessionRepositoryGetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (SessionRepositoryGetFuncCall) Results ¶
func (c SessionRepositoryGetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type TransactionContractCreateFunc ¶
type TransactionContractCreateFunc struct {
// contains filtered or unexported fields
}
TransactionContractCreateFunc describes the behavior when the Create method of the parent MockTransactionContract instance is invoked.
func (*TransactionContractCreateFunc) History ¶
func (f *TransactionContractCreateFunc) History() []TransactionContractCreateFuncCall
History returns a sequence of TransactionContractCreateFuncCall objects describing the invocations of this function.
func (*TransactionContractCreateFunc) PushHook ¶
func (f *TransactionContractCreateFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext, beans.TransactionCreateParams) (*beans.Transaction, error))
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockTransactionContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*TransactionContractCreateFunc) PushReturn ¶
func (f *TransactionContractCreateFunc) PushReturn(r0 *beans.Transaction, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*TransactionContractCreateFunc) SetDefaultHook ¶
func (f *TransactionContractCreateFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext, beans.TransactionCreateParams) (*beans.Transaction, error))
SetDefaultHook sets function that is called when the Create method of the parent MockTransactionContract instance is invoked and the hook queue is empty.
func (*TransactionContractCreateFunc) SetDefaultReturn ¶
func (f *TransactionContractCreateFunc) SetDefaultReturn(r0 *beans.Transaction, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type TransactionContractCreateFuncCall ¶
type TransactionContractCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.TransactionCreateParams // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Transaction // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
TransactionContractCreateFuncCall is an object that describes an invocation of method Create on an instance of MockTransactionContract.
func (TransactionContractCreateFuncCall) Args ¶
func (c TransactionContractCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (TransactionContractCreateFuncCall) Results ¶
func (c TransactionContractCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type TransactionContractGetAllFunc ¶
type TransactionContractGetAllFunc struct {
// contains filtered or unexported fields
}
TransactionContractGetAllFunc describes the behavior when the GetAll method of the parent MockTransactionContract instance is invoked.
func (*TransactionContractGetAllFunc) History ¶
func (f *TransactionContractGetAllFunc) History() []TransactionContractGetAllFuncCall
History returns a sequence of TransactionContractGetAllFuncCall objects describing the invocations of this function.
func (*TransactionContractGetAllFunc) PushHook ¶
func (f *TransactionContractGetAllFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext) ([]*beans.Transaction, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetAll method of the parent MockTransactionContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*TransactionContractGetAllFunc) PushReturn ¶
func (f *TransactionContractGetAllFunc) PushReturn(r0 []*beans.Transaction, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*TransactionContractGetAllFunc) SetDefaultHook ¶
func (f *TransactionContractGetAllFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext) ([]*beans.Transaction, error))
SetDefaultHook sets function that is called when the GetAll method of the parent MockTransactionContract instance is invoked and the hook queue is empty.
func (*TransactionContractGetAllFunc) SetDefaultReturn ¶
func (f *TransactionContractGetAllFunc) SetDefaultReturn(r0 []*beans.Transaction, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type TransactionContractGetAllFuncCall ¶
type TransactionContractGetAllFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.Transaction // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
TransactionContractGetAllFuncCall is an object that describes an invocation of method GetAll on an instance of MockTransactionContract.
func (TransactionContractGetAllFuncCall) Args ¶
func (c TransactionContractGetAllFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (TransactionContractGetAllFuncCall) Results ¶
func (c TransactionContractGetAllFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type TransactionContractUpdateFunc ¶
type TransactionContractUpdateFunc struct {
// contains filtered or unexported fields
}
TransactionContractUpdateFunc describes the behavior when the Update method of the parent MockTransactionContract instance is invoked.
func (*TransactionContractUpdateFunc) History ¶
func (f *TransactionContractUpdateFunc) History() []TransactionContractUpdateFuncCall
History returns a sequence of TransactionContractUpdateFuncCall objects describing the invocations of this function.
func (*TransactionContractUpdateFunc) PushHook ¶
func (f *TransactionContractUpdateFunc) PushHook(hook func(context.Context, *beans.BudgetAuthContext, beans.TransactionUpdateParams) error)
PushHook adds a function to the end of hook queue. Each invocation of the Update method of the parent MockTransactionContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*TransactionContractUpdateFunc) PushReturn ¶
func (f *TransactionContractUpdateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*TransactionContractUpdateFunc) SetDefaultHook ¶
func (f *TransactionContractUpdateFunc) SetDefaultHook(hook func(context.Context, *beans.BudgetAuthContext, beans.TransactionUpdateParams) error)
SetDefaultHook sets function that is called when the Update method of the parent MockTransactionContract instance is invoked and the hook queue is empty.
func (*TransactionContractUpdateFunc) SetDefaultReturn ¶
func (f *TransactionContractUpdateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type TransactionContractUpdateFuncCall ¶
type TransactionContractUpdateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.BudgetAuthContext // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.TransactionUpdateParams // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
TransactionContractUpdateFuncCall is an object that describes an invocation of method Update on an instance of MockTransactionContract.
func (TransactionContractUpdateFuncCall) Args ¶
func (c TransactionContractUpdateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (TransactionContractUpdateFuncCall) Results ¶
func (c TransactionContractUpdateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type TransactionRepositoryCreateFunc ¶
type TransactionRepositoryCreateFunc struct {
// contains filtered or unexported fields
}
TransactionRepositoryCreateFunc describes the behavior when the Create method of the parent MockTransactionRepository instance is invoked.
func (*TransactionRepositoryCreateFunc) History ¶
func (f *TransactionRepositoryCreateFunc) History() []TransactionRepositoryCreateFuncCall
History returns a sequence of TransactionRepositoryCreateFuncCall objects describing the invocations of this function.
func (*TransactionRepositoryCreateFunc) PushHook ¶
func (f *TransactionRepositoryCreateFunc) PushHook(hook func(context.Context, *beans.Transaction) error)
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockTransactionRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*TransactionRepositoryCreateFunc) PushReturn ¶
func (f *TransactionRepositoryCreateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*TransactionRepositoryCreateFunc) SetDefaultHook ¶
func (f *TransactionRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, *beans.Transaction) error)
SetDefaultHook sets function that is called when the Create method of the parent MockTransactionRepository instance is invoked and the hook queue is empty.
func (*TransactionRepositoryCreateFunc) SetDefaultReturn ¶
func (f *TransactionRepositoryCreateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type TransactionRepositoryCreateFuncCall ¶
type TransactionRepositoryCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.Transaction // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
TransactionRepositoryCreateFuncCall is an object that describes an invocation of method Create on an instance of MockTransactionRepository.
func (TransactionRepositoryCreateFuncCall) Args ¶
func (c TransactionRepositoryCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (TransactionRepositoryCreateFuncCall) Results ¶
func (c TransactionRepositoryCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type TransactionRepositoryGetForBudgetFunc ¶
type TransactionRepositoryGetForBudgetFunc struct {
// contains filtered or unexported fields
}
TransactionRepositoryGetForBudgetFunc describes the behavior when the GetForBudget method of the parent MockTransactionRepository instance is invoked.
func (*TransactionRepositoryGetForBudgetFunc) History ¶
func (f *TransactionRepositoryGetForBudgetFunc) History() []TransactionRepositoryGetForBudgetFuncCall
History returns a sequence of TransactionRepositoryGetForBudgetFuncCall objects describing the invocations of this function.
func (*TransactionRepositoryGetForBudgetFunc) PushHook ¶
func (f *TransactionRepositoryGetForBudgetFunc) PushHook(hook func(context.Context, beans.ID) ([]*beans.Transaction, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetForBudget method of the parent MockTransactionRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*TransactionRepositoryGetForBudgetFunc) PushReturn ¶
func (f *TransactionRepositoryGetForBudgetFunc) PushReturn(r0 []*beans.Transaction, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*TransactionRepositoryGetForBudgetFunc) SetDefaultHook ¶
func (f *TransactionRepositoryGetForBudgetFunc) SetDefaultHook(hook func(context.Context, beans.ID) ([]*beans.Transaction, error))
SetDefaultHook sets function that is called when the GetForBudget method of the parent MockTransactionRepository instance is invoked and the hook queue is empty.
func (*TransactionRepositoryGetForBudgetFunc) SetDefaultReturn ¶
func (f *TransactionRepositoryGetForBudgetFunc) SetDefaultReturn(r0 []*beans.Transaction, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type TransactionRepositoryGetForBudgetFuncCall ¶
type TransactionRepositoryGetForBudgetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 []*beans.Transaction // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
TransactionRepositoryGetForBudgetFuncCall is an object that describes an invocation of method GetForBudget on an instance of MockTransactionRepository.
func (TransactionRepositoryGetForBudgetFuncCall) Args ¶
func (c TransactionRepositoryGetForBudgetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (TransactionRepositoryGetForBudgetFuncCall) Results ¶
func (c TransactionRepositoryGetForBudgetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type TransactionRepositoryGetFunc ¶
type TransactionRepositoryGetFunc struct {
// contains filtered or unexported fields
}
TransactionRepositoryGetFunc describes the behavior when the Get method of the parent MockTransactionRepository instance is invoked.
func (*TransactionRepositoryGetFunc) History ¶
func (f *TransactionRepositoryGetFunc) History() []TransactionRepositoryGetFuncCall
History returns a sequence of TransactionRepositoryGetFuncCall objects describing the invocations of this function.
func (*TransactionRepositoryGetFunc) PushHook ¶
func (f *TransactionRepositoryGetFunc) PushHook(hook func(context.Context, beans.ID) (*beans.Transaction, error))
PushHook adds a function to the end of hook queue. Each invocation of the Get method of the parent MockTransactionRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*TransactionRepositoryGetFunc) PushReturn ¶
func (f *TransactionRepositoryGetFunc) PushReturn(r0 *beans.Transaction, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*TransactionRepositoryGetFunc) SetDefaultHook ¶
func (f *TransactionRepositoryGetFunc) SetDefaultHook(hook func(context.Context, beans.ID) (*beans.Transaction, error))
SetDefaultHook sets function that is called when the Get method of the parent MockTransactionRepository instance is invoked and the hook queue is empty.
func (*TransactionRepositoryGetFunc) SetDefaultReturn ¶
func (f *TransactionRepositoryGetFunc) SetDefaultReturn(r0 *beans.Transaction, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type TransactionRepositoryGetFuncCall ¶
type TransactionRepositoryGetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Transaction // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
TransactionRepositoryGetFuncCall is an object that describes an invocation of method Get on an instance of MockTransactionRepository.
func (TransactionRepositoryGetFuncCall) Args ¶
func (c TransactionRepositoryGetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (TransactionRepositoryGetFuncCall) Results ¶
func (c TransactionRepositoryGetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type TransactionRepositoryGetIncomeBetweenFunc ¶
type TransactionRepositoryGetIncomeBetweenFunc struct {
// contains filtered or unexported fields
}
TransactionRepositoryGetIncomeBetweenFunc describes the behavior when the GetIncomeBetween method of the parent MockTransactionRepository instance is invoked.
func (*TransactionRepositoryGetIncomeBetweenFunc) History ¶
func (f *TransactionRepositoryGetIncomeBetweenFunc) History() []TransactionRepositoryGetIncomeBetweenFuncCall
History returns a sequence of TransactionRepositoryGetIncomeBetweenFuncCall objects describing the invocations of this function.
func (*TransactionRepositoryGetIncomeBetweenFunc) PushHook ¶
func (f *TransactionRepositoryGetIncomeBetweenFunc) PushHook(hook func(context.Context, beans.ID, beans.Date, beans.Date) (beans.Amount, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetIncomeBetween method of the parent MockTransactionRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*TransactionRepositoryGetIncomeBetweenFunc) PushReturn ¶
func (f *TransactionRepositoryGetIncomeBetweenFunc) PushReturn(r0 beans.Amount, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*TransactionRepositoryGetIncomeBetweenFunc) SetDefaultHook ¶
func (f *TransactionRepositoryGetIncomeBetweenFunc) SetDefaultHook(hook func(context.Context, beans.ID, beans.Date, beans.Date) (beans.Amount, error))
SetDefaultHook sets function that is called when the GetIncomeBetween method of the parent MockTransactionRepository instance is invoked and the hook queue is empty.
func (*TransactionRepositoryGetIncomeBetweenFunc) SetDefaultReturn ¶
func (f *TransactionRepositoryGetIncomeBetweenFunc) SetDefaultReturn(r0 beans.Amount, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type TransactionRepositoryGetIncomeBetweenFuncCall ¶
type TransactionRepositoryGetIncomeBetweenFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.Date // Arg3 is the value of the 4th argument passed to this method // invocation. Arg3 beans.Date // Result0 is the value of the 1st result returned from this method // invocation. Result0 beans.Amount // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
TransactionRepositoryGetIncomeBetweenFuncCall is an object that describes an invocation of method GetIncomeBetween on an instance of MockTransactionRepository.
func (TransactionRepositoryGetIncomeBetweenFuncCall) Args ¶
func (c TransactionRepositoryGetIncomeBetweenFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (TransactionRepositoryGetIncomeBetweenFuncCall) Results ¶
func (c TransactionRepositoryGetIncomeBetweenFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type TransactionRepositoryUpdateFunc ¶
type TransactionRepositoryUpdateFunc struct {
// contains filtered or unexported fields
}
TransactionRepositoryUpdateFunc describes the behavior when the Update method of the parent MockTransactionRepository instance is invoked.
func (*TransactionRepositoryUpdateFunc) History ¶
func (f *TransactionRepositoryUpdateFunc) History() []TransactionRepositoryUpdateFuncCall
History returns a sequence of TransactionRepositoryUpdateFuncCall objects describing the invocations of this function.
func (*TransactionRepositoryUpdateFunc) PushHook ¶
func (f *TransactionRepositoryUpdateFunc) PushHook(hook func(context.Context, *beans.Transaction) error)
PushHook adds a function to the end of hook queue. Each invocation of the Update method of the parent MockTransactionRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*TransactionRepositoryUpdateFunc) PushReturn ¶
func (f *TransactionRepositoryUpdateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*TransactionRepositoryUpdateFunc) SetDefaultHook ¶
func (f *TransactionRepositoryUpdateFunc) SetDefaultHook(hook func(context.Context, *beans.Transaction) error)
SetDefaultHook sets function that is called when the Update method of the parent MockTransactionRepository instance is invoked and the hook queue is empty.
func (*TransactionRepositoryUpdateFunc) SetDefaultReturn ¶
func (f *TransactionRepositoryUpdateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type TransactionRepositoryUpdateFuncCall ¶
type TransactionRepositoryUpdateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.Transaction // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
TransactionRepositoryUpdateFuncCall is an object that describes an invocation of method Update on an instance of MockTransactionRepository.
func (TransactionRepositoryUpdateFuncCall) Args ¶
func (c TransactionRepositoryUpdateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (TransactionRepositoryUpdateFuncCall) Results ¶
func (c TransactionRepositoryUpdateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type TxCommitFunc ¶
type TxCommitFunc struct {
// contains filtered or unexported fields
}
TxCommitFunc describes the behavior when the Commit method of the parent MockTx instance is invoked.
func (*TxCommitFunc) History ¶
func (f *TxCommitFunc) History() []TxCommitFuncCall
History returns a sequence of TxCommitFuncCall objects describing the invocations of this function.
func (*TxCommitFunc) PushHook ¶
func (f *TxCommitFunc) PushHook(hook func(context.Context) error)
PushHook adds a function to the end of hook queue. Each invocation of the Commit method of the parent MockTx instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*TxCommitFunc) PushReturn ¶
func (f *TxCommitFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*TxCommitFunc) SetDefaultHook ¶
func (f *TxCommitFunc) SetDefaultHook(hook func(context.Context) error)
SetDefaultHook sets function that is called when the Commit method of the parent MockTx instance is invoked and the hook queue is empty.
func (*TxCommitFunc) SetDefaultReturn ¶
func (f *TxCommitFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type TxCommitFuncCall ¶
type TxCommitFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
TxCommitFuncCall is an object that describes an invocation of method Commit on an instance of MockTx.
func (TxCommitFuncCall) Args ¶
func (c TxCommitFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (TxCommitFuncCall) Results ¶
func (c TxCommitFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type TxManagerCreateFunc ¶
type TxManagerCreateFunc struct {
// contains filtered or unexported fields
}
TxManagerCreateFunc describes the behavior when the Create method of the parent MockTxManager instance is invoked.
func (*TxManagerCreateFunc) History ¶
func (f *TxManagerCreateFunc) History() []TxManagerCreateFuncCall
History returns a sequence of TxManagerCreateFuncCall objects describing the invocations of this function.
func (*TxManagerCreateFunc) PushHook ¶
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockTxManager instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*TxManagerCreateFunc) PushReturn ¶
func (f *TxManagerCreateFunc) PushReturn(r0 beans.Tx, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*TxManagerCreateFunc) SetDefaultHook ¶
SetDefaultHook sets function that is called when the Create method of the parent MockTxManager instance is invoked and the hook queue is empty.
func (*TxManagerCreateFunc) SetDefaultReturn ¶
func (f *TxManagerCreateFunc) SetDefaultReturn(r0 beans.Tx, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type TxManagerCreateFuncCall ¶
type TxManagerCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Result0 is the value of the 1st result returned from this method // invocation. Result0 beans.Tx // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
TxManagerCreateFuncCall is an object that describes an invocation of method Create on an instance of MockTxManager.
func (TxManagerCreateFuncCall) Args ¶
func (c TxManagerCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (TxManagerCreateFuncCall) Results ¶
func (c TxManagerCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type TxRollbackFunc ¶
type TxRollbackFunc struct {
// contains filtered or unexported fields
}
TxRollbackFunc describes the behavior when the Rollback method of the parent MockTx instance is invoked.
func (*TxRollbackFunc) History ¶
func (f *TxRollbackFunc) History() []TxRollbackFuncCall
History returns a sequence of TxRollbackFuncCall objects describing the invocations of this function.
func (*TxRollbackFunc) PushHook ¶
func (f *TxRollbackFunc) PushHook(hook func(context.Context) error)
PushHook adds a function to the end of hook queue. Each invocation of the Rollback method of the parent MockTx instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*TxRollbackFunc) PushReturn ¶
func (f *TxRollbackFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*TxRollbackFunc) SetDefaultHook ¶
func (f *TxRollbackFunc) SetDefaultHook(hook func(context.Context) error)
SetDefaultHook sets function that is called when the Rollback method of the parent MockTx instance is invoked and the hook queue is empty.
func (*TxRollbackFunc) SetDefaultReturn ¶
func (f *TxRollbackFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type TxRollbackFuncCall ¶
type TxRollbackFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
TxRollbackFuncCall is an object that describes an invocation of method Rollback on an instance of MockTx.
func (TxRollbackFuncCall) Args ¶
func (c TxRollbackFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (TxRollbackFuncCall) Results ¶
func (c TxRollbackFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type UserContractGetMeFunc ¶
type UserContractGetMeFunc struct {
// contains filtered or unexported fields
}
UserContractGetMeFunc describes the behavior when the GetMe method of the parent MockUserContract instance is invoked.
func (*UserContractGetMeFunc) History ¶
func (f *UserContractGetMeFunc) History() []UserContractGetMeFuncCall
History returns a sequence of UserContractGetMeFuncCall objects describing the invocations of this function.
func (*UserContractGetMeFunc) PushHook ¶
func (f *UserContractGetMeFunc) PushHook(hook func(context.Context, *beans.AuthContext) (*beans.User, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetMe method of the parent MockUserContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*UserContractGetMeFunc) PushReturn ¶
func (f *UserContractGetMeFunc) PushReturn(r0 *beans.User, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*UserContractGetMeFunc) SetDefaultHook ¶
func (f *UserContractGetMeFunc) SetDefaultHook(hook func(context.Context, *beans.AuthContext) (*beans.User, error))
SetDefaultHook sets function that is called when the GetMe method of the parent MockUserContract instance is invoked and the hook queue is empty.
func (*UserContractGetMeFunc) SetDefaultReturn ¶
func (f *UserContractGetMeFunc) SetDefaultReturn(r0 *beans.User, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type UserContractGetMeFuncCall ¶
type UserContractGetMeFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.AuthContext // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.User // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
UserContractGetMeFuncCall is an object that describes an invocation of method GetMe on an instance of MockUserContract.
func (UserContractGetMeFuncCall) Args ¶
func (c UserContractGetMeFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (UserContractGetMeFuncCall) Results ¶
func (c UserContractGetMeFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type UserContractLoginFunc ¶
type UserContractLoginFunc struct {
// contains filtered or unexported fields
}
UserContractLoginFunc describes the behavior when the Login method of the parent MockUserContract instance is invoked.
func (*UserContractLoginFunc) History ¶
func (f *UserContractLoginFunc) History() []UserContractLoginFuncCall
History returns a sequence of UserContractLoginFuncCall objects describing the invocations of this function.
func (*UserContractLoginFunc) PushHook ¶
func (f *UserContractLoginFunc) PushHook(hook func(context.Context, beans.Username, beans.Password) (*beans.Session, error))
PushHook adds a function to the end of hook queue. Each invocation of the Login method of the parent MockUserContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*UserContractLoginFunc) PushReturn ¶
func (f *UserContractLoginFunc) PushReturn(r0 *beans.Session, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*UserContractLoginFunc) SetDefaultHook ¶
func (f *UserContractLoginFunc) SetDefaultHook(hook func(context.Context, beans.Username, beans.Password) (*beans.Session, error))
SetDefaultHook sets function that is called when the Login method of the parent MockUserContract instance is invoked and the hook queue is empty.
func (*UserContractLoginFunc) SetDefaultReturn ¶
func (f *UserContractLoginFunc) SetDefaultReturn(r0 *beans.Session, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type UserContractLoginFuncCall ¶
type UserContractLoginFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.Username // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.Password // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.Session // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
UserContractLoginFuncCall is an object that describes an invocation of method Login on an instance of MockUserContract.
func (UserContractLoginFuncCall) Args ¶
func (c UserContractLoginFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (UserContractLoginFuncCall) Results ¶
func (c UserContractLoginFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type UserContractLogoutFunc ¶
type UserContractLogoutFunc struct {
// contains filtered or unexported fields
}
UserContractLogoutFunc describes the behavior when the Logout method of the parent MockUserContract instance is invoked.
func (*UserContractLogoutFunc) History ¶
func (f *UserContractLogoutFunc) History() []UserContractLogoutFuncCall
History returns a sequence of UserContractLogoutFuncCall objects describing the invocations of this function.
func (*UserContractLogoutFunc) PushHook ¶
func (f *UserContractLogoutFunc) PushHook(hook func(context.Context, *beans.AuthContext) error)
PushHook adds a function to the end of hook queue. Each invocation of the Logout method of the parent MockUserContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*UserContractLogoutFunc) PushReturn ¶
func (f *UserContractLogoutFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*UserContractLogoutFunc) SetDefaultHook ¶
func (f *UserContractLogoutFunc) SetDefaultHook(hook func(context.Context, *beans.AuthContext) error)
SetDefaultHook sets function that is called when the Logout method of the parent MockUserContract instance is invoked and the hook queue is empty.
func (*UserContractLogoutFunc) SetDefaultReturn ¶
func (f *UserContractLogoutFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type UserContractLogoutFuncCall ¶
type UserContractLogoutFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 *beans.AuthContext // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
UserContractLogoutFuncCall is an object that describes an invocation of method Logout on an instance of MockUserContract.
func (UserContractLogoutFuncCall) Args ¶
func (c UserContractLogoutFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (UserContractLogoutFuncCall) Results ¶
func (c UserContractLogoutFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type UserContractRegisterFunc ¶
type UserContractRegisterFunc struct {
// contains filtered or unexported fields
}
UserContractRegisterFunc describes the behavior when the Register method of the parent MockUserContract instance is invoked.
func (*UserContractRegisterFunc) History ¶
func (f *UserContractRegisterFunc) History() []UserContractRegisterFuncCall
History returns a sequence of UserContractRegisterFuncCall objects describing the invocations of this function.
func (*UserContractRegisterFunc) PushHook ¶
func (f *UserContractRegisterFunc) PushHook(hook func(context.Context, beans.Username, beans.Password) error)
PushHook adds a function to the end of hook queue. Each invocation of the Register method of the parent MockUserContract instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*UserContractRegisterFunc) PushReturn ¶
func (f *UserContractRegisterFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*UserContractRegisterFunc) SetDefaultHook ¶
func (f *UserContractRegisterFunc) SetDefaultHook(hook func(context.Context, beans.Username, beans.Password) error)
SetDefaultHook sets function that is called when the Register method of the parent MockUserContract instance is invoked and the hook queue is empty.
func (*UserContractRegisterFunc) SetDefaultReturn ¶
func (f *UserContractRegisterFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type UserContractRegisterFuncCall ¶
type UserContractRegisterFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.Username // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.Password // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
UserContractRegisterFuncCall is an object that describes an invocation of method Register on an instance of MockUserContract.
func (UserContractRegisterFuncCall) Args ¶
func (c UserContractRegisterFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (UserContractRegisterFuncCall) Results ¶
func (c UserContractRegisterFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type UserRepositoryCreateFunc ¶
type UserRepositoryCreateFunc struct {
// contains filtered or unexported fields
}
UserRepositoryCreateFunc describes the behavior when the Create method of the parent MockUserRepository instance is invoked.
func (*UserRepositoryCreateFunc) History ¶
func (f *UserRepositoryCreateFunc) History() []UserRepositoryCreateFuncCall
History returns a sequence of UserRepositoryCreateFuncCall objects describing the invocations of this function.
func (*UserRepositoryCreateFunc) PushHook ¶
func (f *UserRepositoryCreateFunc) PushHook(hook func(context.Context, beans.ID, beans.Username, beans.PasswordHash) error)
PushHook adds a function to the end of hook queue. Each invocation of the Create method of the parent MockUserRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*UserRepositoryCreateFunc) PushReturn ¶
func (f *UserRepositoryCreateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*UserRepositoryCreateFunc) SetDefaultHook ¶
func (f *UserRepositoryCreateFunc) SetDefaultHook(hook func(context.Context, beans.ID, beans.Username, beans.PasswordHash) error)
SetDefaultHook sets function that is called when the Create method of the parent MockUserRepository instance is invoked and the hook queue is empty.
func (*UserRepositoryCreateFunc) SetDefaultReturn ¶
func (f *UserRepositoryCreateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type UserRepositoryCreateFuncCall ¶
type UserRepositoryCreateFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Arg2 is the value of the 3rd argument passed to this method // invocation. Arg2 beans.Username // Arg3 is the value of the 4th argument passed to this method // invocation. Arg3 beans.PasswordHash // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
UserRepositoryCreateFuncCall is an object that describes an invocation of method Create on an instance of MockUserRepository.
func (UserRepositoryCreateFuncCall) Args ¶
func (c UserRepositoryCreateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (UserRepositoryCreateFuncCall) Results ¶
func (c UserRepositoryCreateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type UserRepositoryExistsFunc ¶
type UserRepositoryExistsFunc struct {
// contains filtered or unexported fields
}
UserRepositoryExistsFunc describes the behavior when the Exists method of the parent MockUserRepository instance is invoked.
func (*UserRepositoryExistsFunc) History ¶
func (f *UserRepositoryExistsFunc) History() []UserRepositoryExistsFuncCall
History returns a sequence of UserRepositoryExistsFuncCall objects describing the invocations of this function.
func (*UserRepositoryExistsFunc) PushHook ¶
func (f *UserRepositoryExistsFunc) PushHook(hook func(context.Context, beans.Username) (bool, error))
PushHook adds a function to the end of hook queue. Each invocation of the Exists method of the parent MockUserRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*UserRepositoryExistsFunc) PushReturn ¶
func (f *UserRepositoryExistsFunc) PushReturn(r0 bool, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*UserRepositoryExistsFunc) SetDefaultHook ¶
func (f *UserRepositoryExistsFunc) SetDefaultHook(hook func(context.Context, beans.Username) (bool, error))
SetDefaultHook sets function that is called when the Exists method of the parent MockUserRepository instance is invoked and the hook queue is empty.
func (*UserRepositoryExistsFunc) SetDefaultReturn ¶
func (f *UserRepositoryExistsFunc) SetDefaultReturn(r0 bool, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type UserRepositoryExistsFuncCall ¶
type UserRepositoryExistsFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.Username // Result0 is the value of the 1st result returned from this method // invocation. Result0 bool // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
UserRepositoryExistsFuncCall is an object that describes an invocation of method Exists on an instance of MockUserRepository.
func (UserRepositoryExistsFuncCall) Args ¶
func (c UserRepositoryExistsFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (UserRepositoryExistsFuncCall) Results ¶
func (c UserRepositoryExistsFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type UserRepositoryGetByUsernameFunc ¶
type UserRepositoryGetByUsernameFunc struct {
// contains filtered or unexported fields
}
UserRepositoryGetByUsernameFunc describes the behavior when the GetByUsername method of the parent MockUserRepository instance is invoked.
func (*UserRepositoryGetByUsernameFunc) History ¶
func (f *UserRepositoryGetByUsernameFunc) History() []UserRepositoryGetByUsernameFuncCall
History returns a sequence of UserRepositoryGetByUsernameFuncCall objects describing the invocations of this function.
func (*UserRepositoryGetByUsernameFunc) PushHook ¶
func (f *UserRepositoryGetByUsernameFunc) PushHook(hook func(context.Context, beans.Username) (*beans.User, error))
PushHook adds a function to the end of hook queue. Each invocation of the GetByUsername method of the parent MockUserRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*UserRepositoryGetByUsernameFunc) PushReturn ¶
func (f *UserRepositoryGetByUsernameFunc) PushReturn(r0 *beans.User, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*UserRepositoryGetByUsernameFunc) SetDefaultHook ¶
func (f *UserRepositoryGetByUsernameFunc) SetDefaultHook(hook func(context.Context, beans.Username) (*beans.User, error))
SetDefaultHook sets function that is called when the GetByUsername method of the parent MockUserRepository instance is invoked and the hook queue is empty.
func (*UserRepositoryGetByUsernameFunc) SetDefaultReturn ¶
func (f *UserRepositoryGetByUsernameFunc) SetDefaultReturn(r0 *beans.User, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type UserRepositoryGetByUsernameFuncCall ¶
type UserRepositoryGetByUsernameFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.Username // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.User // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
UserRepositoryGetByUsernameFuncCall is an object that describes an invocation of method GetByUsername on an instance of MockUserRepository.
func (UserRepositoryGetByUsernameFuncCall) Args ¶
func (c UserRepositoryGetByUsernameFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (UserRepositoryGetByUsernameFuncCall) Results ¶
func (c UserRepositoryGetByUsernameFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type UserRepositoryGetFunc ¶
type UserRepositoryGetFunc struct {
// contains filtered or unexported fields
}
UserRepositoryGetFunc describes the behavior when the Get method of the parent MockUserRepository instance is invoked.
func (*UserRepositoryGetFunc) History ¶
func (f *UserRepositoryGetFunc) History() []UserRepositoryGetFuncCall
History returns a sequence of UserRepositoryGetFuncCall objects describing the invocations of this function.
func (*UserRepositoryGetFunc) PushHook ¶
PushHook adds a function to the end of hook queue. Each invocation of the Get method of the parent MockUserRepository instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*UserRepositoryGetFunc) PushReturn ¶
func (f *UserRepositoryGetFunc) PushReturn(r0 *beans.User, r1 error)
PushReturn calls PushHook with a function that returns the given values.
func (*UserRepositoryGetFunc) SetDefaultHook ¶
func (f *UserRepositoryGetFunc) SetDefaultHook(hook func(context.Context, beans.ID) (*beans.User, error))
SetDefaultHook sets function that is called when the Get method of the parent MockUserRepository instance is invoked and the hook queue is empty.
func (*UserRepositoryGetFunc) SetDefaultReturn ¶
func (f *UserRepositoryGetFunc) SetDefaultReturn(r0 *beans.User, r1 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type UserRepositoryGetFuncCall ¶
type UserRepositoryGetFuncCall struct { // Arg0 is the value of the 1st argument passed to this method // invocation. Arg0 context.Context // Arg1 is the value of the 2nd argument passed to this method // invocation. Arg1 beans.ID // Result0 is the value of the 1st result returned from this method // invocation. Result0 *beans.User // Result1 is the value of the 2nd result returned from this method // invocation. Result1 error }
UserRepositoryGetFuncCall is an object that describes an invocation of method Get on an instance of MockUserRepository.
func (UserRepositoryGetFuncCall) Args ¶
func (c UserRepositoryGetFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (UserRepositoryGetFuncCall) Results ¶
func (c UserRepositoryGetFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.
type ValidatableValidateFunc ¶
type ValidatableValidateFunc struct {
// contains filtered or unexported fields
}
ValidatableValidateFunc describes the behavior when the Validate method of the parent MockValidatable instance is invoked.
func (*ValidatableValidateFunc) History ¶
func (f *ValidatableValidateFunc) History() []ValidatableValidateFuncCall
History returns a sequence of ValidatableValidateFuncCall objects describing the invocations of this function.
func (*ValidatableValidateFunc) PushHook ¶
func (f *ValidatableValidateFunc) PushHook(hook func() error)
PushHook adds a function to the end of hook queue. Each invocation of the Validate method of the parent MockValidatable instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.
func (*ValidatableValidateFunc) PushReturn ¶
func (f *ValidatableValidateFunc) PushReturn(r0 error)
PushReturn calls PushHook with a function that returns the given values.
func (*ValidatableValidateFunc) SetDefaultHook ¶
func (f *ValidatableValidateFunc) SetDefaultHook(hook func() error)
SetDefaultHook sets function that is called when the Validate method of the parent MockValidatable instance is invoked and the hook queue is empty.
func (*ValidatableValidateFunc) SetDefaultReturn ¶
func (f *ValidatableValidateFunc) SetDefaultReturn(r0 error)
SetDefaultReturn calls SetDefaultHook with a function that returns the given values.
type ValidatableValidateFuncCall ¶
type ValidatableValidateFuncCall struct { // Result0 is the value of the 1st result returned from this method // invocation. Result0 error }
ValidatableValidateFuncCall is an object that describes an invocation of method Validate on an instance of MockValidatable.
func (ValidatableValidateFuncCall) Args ¶
func (c ValidatableValidateFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (ValidatableValidateFuncCall) Results ¶
func (c ValidatableValidateFuncCall) Results() []interface{}
Results returns an interface slice containing the results of this invocation.