Documentation ¶
Overview ¶
Package mock_backend is a generated GoMock package.
Index ¶
- type MockIDBBackend
- func (m *MockIDBBackend) CreateAccount(arg0 *models.Account) error
- func (m *MockIDBBackend) CreateAddresses(arg0 *gorm.DB, arg1 []*models.Address) error
- func (m *MockIDBBackend) CreateFunds(arg0 *gorm.DB, arg1 *models.PubFunds) error
- func (m *MockIDBBackend) CreateImages(arg0 *gorm.DB, arg1 []*models.Image) error
- func (m *MockIDBBackend) CreateOrganization(arg0 *models.DonationStat) error
- func (m *MockIDBBackend) CreateSupplies(arg0 *gorm.DB, arg1 []*models.PubSupplies) error
- func (m *MockIDBBackend) DBTransactionCommit(arg0 *gorm.DB)
- func (m *MockIDBBackend) DBTransactionRollback(arg0 *gorm.DB)
- func (m *MockIDBBackend) EXPECT() *MockIDBBackendMockRecorder
- func (m *MockIDBBackend) GetDBTransaction() *gorm.DB
- func (m *MockIDBBackend) QueryAccount(arg0, arg1 string) (*models.Account, error)
- func (m *MockIDBBackend) QueryFunds(arg0, arg1, arg2, arg3 string, arg4 *structs.QueryParams) ([]*models.PubFunds, error)
- func (m *MockIDBBackend) QueryFundsDetail(arg0 string) (*models.FundsDetail, error)
- func (m *MockIDBBackend) QueryOrgCharities(arg0 *structs.QueryParams) ([]*structs.OrgCharitiesItems, error)
- func (m *MockIDBBackend) QueryOrgCharitiesDetail(arg0 string) (*structs.OrgCharitiesDetailItem, error)
- func (m *MockIDBBackend) QueryPubByUser(arg0, arg1, arg2, arg3 string, arg4 *structs.QueryParams) ([]*structs.PubUserItem, error)
- func (m *MockIDBBackend) QueryPubByUserType(arg0, arg1, arg2 string, arg3 *structs.QueryParams) ([]*structs.PubUserItem, error)
- func (m *MockIDBBackend) QuerySupplies(arg0, arg1, arg2, arg3 string, arg4 *structs.QueryParams) ([]*models.PubSupplies, error)
- func (m *MockIDBBackend) QuerySuppliesDetail(arg0 string) (*models.SuppliesDetail, error)
- func (m *MockIDBBackend) UpdateFunds(arg0 *gorm.DB, arg1, arg2 string) error
- func (m *MockIDBBackend) UpdateFundsBC(arg0 *gorm.DB, arg1 string, arg2 *models.PubFunds) error
- func (m *MockIDBBackend) UpdateSuppliesBC(arg0 *gorm.DB, arg1 string, arg2 *models.PubSupplies) error
- func (m *MockIDBBackend) UpdateSuppliesList(arg0 *gorm.DB, arg1 []*models.PubSupplies, arg2 []*structs.PubResp) error
- type MockIDBBackendMockRecorder
- func (mr *MockIDBBackendMockRecorder) CreateAccount(arg0 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) CreateAddresses(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) CreateFunds(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) CreateImages(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) CreateOrganization(arg0 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) CreateSupplies(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) DBTransactionCommit(arg0 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) DBTransactionRollback(arg0 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) GetDBTransaction() *gomock.Call
- func (mr *MockIDBBackendMockRecorder) QueryAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) QueryFunds(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) QueryFundsDetail(arg0 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) QueryOrgCharities(arg0 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) QueryOrgCharitiesDetail(arg0 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) QueryPubByUser(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) QueryPubByUserType(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) QuerySupplies(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) QuerySuppliesDetail(arg0 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) UpdateFunds(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) UpdateFundsBC(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) UpdateSuppliesBC(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockIDBBackendMockRecorder) UpdateSuppliesList(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIDBBackend ¶
type MockIDBBackend struct {
// contains filtered or unexported fields
}
MockIDBBackend is a mock of IDBBackend interface
func NewMockIDBBackend ¶
func NewMockIDBBackend(ctrl *gomock.Controller) *MockIDBBackend
NewMockIDBBackend creates a new mock instance
func (*MockIDBBackend) CreateAccount ¶
func (m *MockIDBBackend) CreateAccount(arg0 *models.Account) error
CreateAccount mocks base method
func (*MockIDBBackend) CreateAddresses ¶
CreateAddresses mocks base method
func (*MockIDBBackend) CreateFunds ¶
CreateFunds mocks base method
func (*MockIDBBackend) CreateImages ¶
CreateImages mocks base method
func (*MockIDBBackend) CreateOrganization ¶
func (m *MockIDBBackend) CreateOrganization(arg0 *models.DonationStat) error
CreateOrganization mocks base method
func (*MockIDBBackend) CreateSupplies ¶
func (m *MockIDBBackend) CreateSupplies(arg0 *gorm.DB, arg1 []*models.PubSupplies) error
CreateSupplies mocks base method
func (*MockIDBBackend) DBTransactionCommit ¶
func (m *MockIDBBackend) DBTransactionCommit(arg0 *gorm.DB)
DBTransactionCommit mocks base method
func (*MockIDBBackend) DBTransactionRollback ¶
func (m *MockIDBBackend) DBTransactionRollback(arg0 *gorm.DB)
DBTransactionRollback mocks base method
func (*MockIDBBackend) EXPECT ¶
func (m *MockIDBBackend) EXPECT() *MockIDBBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIDBBackend) GetDBTransaction ¶
func (m *MockIDBBackend) GetDBTransaction() *gorm.DB
GetDBTransaction mocks base method
func (*MockIDBBackend) QueryAccount ¶
func (m *MockIDBBackend) QueryAccount(arg0, arg1 string) (*models.Account, error)
QueryAccount mocks base method
func (*MockIDBBackend) QueryFunds ¶
func (m *MockIDBBackend) QueryFunds(arg0, arg1, arg2, arg3 string, arg4 *structs.QueryParams) ([]*models.PubFunds, error)
QueryFunds mocks base method
func (*MockIDBBackend) QueryFundsDetail ¶
func (m *MockIDBBackend) QueryFundsDetail(arg0 string) (*models.FundsDetail, error)
QueryFundsDetail mocks base method
func (*MockIDBBackend) QueryOrgCharities ¶
func (m *MockIDBBackend) QueryOrgCharities(arg0 *structs.QueryParams) ([]*structs.OrgCharitiesItems, error)
QueryOrgCharities mocks base method
func (*MockIDBBackend) QueryOrgCharitiesDetail ¶
func (m *MockIDBBackend) QueryOrgCharitiesDetail(arg0 string) (*structs.OrgCharitiesDetailItem, error)
QueryOrgCharitiesDetail mocks base method
func (*MockIDBBackend) QueryPubByUser ¶
func (m *MockIDBBackend) QueryPubByUser(arg0, arg1, arg2, arg3 string, arg4 *structs.QueryParams) ([]*structs.PubUserItem, error)
QueryPubByUser mocks base method
func (*MockIDBBackend) QueryPubByUserType ¶
func (m *MockIDBBackend) QueryPubByUserType(arg0, arg1, arg2 string, arg3 *structs.QueryParams) ([]*structs.PubUserItem, error)
QueryPubByUserType mocks base method
func (*MockIDBBackend) QuerySupplies ¶
func (m *MockIDBBackend) QuerySupplies(arg0, arg1, arg2, arg3 string, arg4 *structs.QueryParams) ([]*models.PubSupplies, error)
QuerySupplies mocks base method
func (*MockIDBBackend) QuerySuppliesDetail ¶
func (m *MockIDBBackend) QuerySuppliesDetail(arg0 string) (*models.SuppliesDetail, error)
QuerySuppliesDetail mocks base method
func (*MockIDBBackend) UpdateFunds ¶
func (m *MockIDBBackend) UpdateFunds(arg0 *gorm.DB, arg1, arg2 string) error
UpdateFunds mocks base method
func (*MockIDBBackend) UpdateFundsBC ¶
UpdateFundsBC mocks base method
func (*MockIDBBackend) UpdateSuppliesBC ¶
func (m *MockIDBBackend) UpdateSuppliesBC(arg0 *gorm.DB, arg1 string, arg2 *models.PubSupplies) error
UpdateSuppliesBC mocks base method
func (*MockIDBBackend) UpdateSuppliesList ¶
func (m *MockIDBBackend) UpdateSuppliesList(arg0 *gorm.DB, arg1 []*models.PubSupplies, arg2 []*structs.PubResp) error
UpdateSuppliesList mocks base method
type MockIDBBackendMockRecorder ¶
type MockIDBBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockIDBBackendMockRecorder is the mock recorder for MockIDBBackend
func (*MockIDBBackendMockRecorder) CreateAccount ¶
func (mr *MockIDBBackendMockRecorder) CreateAccount(arg0 interface{}) *gomock.Call
CreateAccount indicates an expected call of CreateAccount
func (*MockIDBBackendMockRecorder) CreateAddresses ¶
func (mr *MockIDBBackendMockRecorder) CreateAddresses(arg0, arg1 interface{}) *gomock.Call
CreateAddresses indicates an expected call of CreateAddresses
func (*MockIDBBackendMockRecorder) CreateFunds ¶
func (mr *MockIDBBackendMockRecorder) CreateFunds(arg0, arg1 interface{}) *gomock.Call
CreateFunds indicates an expected call of CreateFunds
func (*MockIDBBackendMockRecorder) CreateImages ¶
func (mr *MockIDBBackendMockRecorder) CreateImages(arg0, arg1 interface{}) *gomock.Call
CreateImages indicates an expected call of CreateImages
func (*MockIDBBackendMockRecorder) CreateOrganization ¶
func (mr *MockIDBBackendMockRecorder) CreateOrganization(arg0 interface{}) *gomock.Call
CreateOrganization indicates an expected call of CreateOrganization
func (*MockIDBBackendMockRecorder) CreateSupplies ¶
func (mr *MockIDBBackendMockRecorder) CreateSupplies(arg0, arg1 interface{}) *gomock.Call
CreateSupplies indicates an expected call of CreateSupplies
func (*MockIDBBackendMockRecorder) DBTransactionCommit ¶
func (mr *MockIDBBackendMockRecorder) DBTransactionCommit(arg0 interface{}) *gomock.Call
DBTransactionCommit indicates an expected call of DBTransactionCommit
func (*MockIDBBackendMockRecorder) DBTransactionRollback ¶
func (mr *MockIDBBackendMockRecorder) DBTransactionRollback(arg0 interface{}) *gomock.Call
DBTransactionRollback indicates an expected call of DBTransactionRollback
func (*MockIDBBackendMockRecorder) GetDBTransaction ¶
func (mr *MockIDBBackendMockRecorder) GetDBTransaction() *gomock.Call
GetDBTransaction indicates an expected call of GetDBTransaction
func (*MockIDBBackendMockRecorder) QueryAccount ¶
func (mr *MockIDBBackendMockRecorder) QueryAccount(arg0, arg1 interface{}) *gomock.Call
QueryAccount indicates an expected call of QueryAccount
func (*MockIDBBackendMockRecorder) QueryFunds ¶
func (mr *MockIDBBackendMockRecorder) QueryFunds(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
QueryFunds indicates an expected call of QueryFunds
func (*MockIDBBackendMockRecorder) QueryFundsDetail ¶
func (mr *MockIDBBackendMockRecorder) QueryFundsDetail(arg0 interface{}) *gomock.Call
QueryFundsDetail indicates an expected call of QueryFundsDetail
func (*MockIDBBackendMockRecorder) QueryOrgCharities ¶
func (mr *MockIDBBackendMockRecorder) QueryOrgCharities(arg0 interface{}) *gomock.Call
QueryOrgCharities indicates an expected call of QueryOrgCharities
func (*MockIDBBackendMockRecorder) QueryOrgCharitiesDetail ¶
func (mr *MockIDBBackendMockRecorder) QueryOrgCharitiesDetail(arg0 interface{}) *gomock.Call
QueryOrgCharitiesDetail indicates an expected call of QueryOrgCharitiesDetail
func (*MockIDBBackendMockRecorder) QueryPubByUser ¶
func (mr *MockIDBBackendMockRecorder) QueryPubByUser(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
QueryPubByUser indicates an expected call of QueryPubByUser
func (*MockIDBBackendMockRecorder) QueryPubByUserType ¶
func (mr *MockIDBBackendMockRecorder) QueryPubByUserType(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
QueryPubByUserType indicates an expected call of QueryPubByUserType
func (*MockIDBBackendMockRecorder) QuerySupplies ¶
func (mr *MockIDBBackendMockRecorder) QuerySupplies(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
QuerySupplies indicates an expected call of QuerySupplies
func (*MockIDBBackendMockRecorder) QuerySuppliesDetail ¶
func (mr *MockIDBBackendMockRecorder) QuerySuppliesDetail(arg0 interface{}) *gomock.Call
QuerySuppliesDetail indicates an expected call of QuerySuppliesDetail
func (*MockIDBBackendMockRecorder) UpdateFunds ¶
func (mr *MockIDBBackendMockRecorder) UpdateFunds(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateFunds indicates an expected call of UpdateFunds
func (*MockIDBBackendMockRecorder) UpdateFundsBC ¶
func (mr *MockIDBBackendMockRecorder) UpdateFundsBC(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateFundsBC indicates an expected call of UpdateFundsBC
func (*MockIDBBackendMockRecorder) UpdateSuppliesBC ¶
func (mr *MockIDBBackendMockRecorder) UpdateSuppliesBC(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateSuppliesBC indicates an expected call of UpdateSuppliesBC
func (*MockIDBBackendMockRecorder) UpdateSuppliesList ¶
func (mr *MockIDBBackendMockRecorder) UpdateSuppliesList(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateSuppliesList indicates an expected call of UpdateSuppliesList