Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockDbRepo
- type MockDbRepoMockRecorder
- type MockLogic
- func (m *MockLogic) CollateralHealthCheck(input *entity.CollateralHealthCheckInput) ([]*entity.CollateralHealthCheckOutput, error)
- func (m *MockLogic) CreateAccount(input *entity.CreateAccountInput) (*entity.CreateAccountOutput, error)
- func (m *MockLogic) EXPECT() *MockLogicMockRecorder
- func (m *MockLogic) ExportAccount(input *entity.ExportAccountInput) (*entity.ExportAccountOutput, error)
- func (m *MockLogic) GetCreditExchange(input *entity.GetCreditExchangeInput) (*entity.GetCreditExchangeOutput, error)
- func (m *MockLogic) ImportAccount(input *entity.ImportAccountInput) (*entity.ImportAccountOutput, error)
- func (m *MockLogic) Init(configFilePath string) error
- func (m *MockLogic) ListAccount() ([]*entity.Account, error)
- func (m *MockLogic) MintCreditByCollateral(input *entity.MintCreditByCollateralInput) (*entity.MintCreditByCollateralOutput, error)
- func (m *MockLogic) MintCreditByCredit(input *entity.MintCreditByCreditInput) (*entity.MintCreditByCreditOutput, error)
- func (m *MockLogic) RebalanceCollateral(input *entity.RebalanceCollateralInput) ([]*entity.RebalanceCollateralOutput, error)
- func (m *MockLogic) RedeemCredit(input *entity.RedeemCreditInput) (*entity.RedeemCreditOutput, error)
- func (m *MockLogic) SetDefaultAccount(input *entity.SetDefaultAccountInput) (*entity.SetDefaultAccountOutput, error)
- func (m *MockLogic) SetEnv(input *entity.SetEnvInput) error
- func (m *MockLogic) SetupCredit(input *entity.SetupCreditInput) (*entity.SetupCreditOutput, error)
- type MockLogicMockRecorder
- func (mr *MockLogicMockRecorder) CollateralHealthCheck(input interface{}) *gomock.Call
- func (mr *MockLogicMockRecorder) CreateAccount(input interface{}) *gomock.Call
- func (mr *MockLogicMockRecorder) ExportAccount(input interface{}) *gomock.Call
- func (mr *MockLogicMockRecorder) GetCreditExchange(input interface{}) *gomock.Call
- func (mr *MockLogicMockRecorder) ImportAccount(input interface{}) *gomock.Call
- func (mr *MockLogicMockRecorder) Init(configFilePath interface{}) *gomock.Call
- func (mr *MockLogicMockRecorder) ListAccount() *gomock.Call
- func (mr *MockLogicMockRecorder) MintCreditByCollateral(input interface{}) *gomock.Call
- func (mr *MockLogicMockRecorder) MintCreditByCredit(input interface{}) *gomock.Call
- func (mr *MockLogicMockRecorder) RebalanceCollateral(input interface{}) *gomock.Call
- func (mr *MockLogicMockRecorder) RedeemCredit(input interface{}) *gomock.Call
- func (mr *MockLogicMockRecorder) SetDefaultAccount(input interface{}) *gomock.Call
- func (mr *MockLogicMockRecorder) SetEnv(input interface{}) *gomock.Call
- func (mr *MockLogicMockRecorder) SetupCredit(input interface{}) *gomock.Call
- type MockVFactoryRepo
- type MockVFactoryRepoMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDbRepo ¶
type MockDbRepo struct {
// contains filtered or unexported fields
}
MockDbRepo is a mock of Repository interface
func NewMockDbRepo ¶
func NewMockDbRepo(ctrl *gomock.Controller) *MockDbRepo
NewMockDbRepo creates a new mock instance
func (*MockDbRepo) EXPECT ¶
func (m *MockDbRepo) EXPECT() *MockDbRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDbRepo) GetAll ¶
func (m *MockDbRepo) GetAll() ([][]byte, error)
GetAll mocks base method
type MockDbRepoMockRecorder ¶
type MockDbRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockDbRepoMockRecorder is the mock recorder for MockDbRepo
func (*MockDbRepoMockRecorder) Get ¶
func (mr *MockDbRepoMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockDbRepoMockRecorder) GetAll ¶
func (mr *MockDbRepoMockRecorder) GetAll() *gomock.Call
GetAll indicates an expected call of GetAll
func (*MockDbRepoMockRecorder) Init ¶
func (mr *MockDbRepoMockRecorder) Init(path interface{}) *gomock.Call
Init indicates an expected call of Init
func (*MockDbRepoMockRecorder) Save ¶
func (mr *MockDbRepoMockRecorder) Save(key, value interface{}) *gomock.Call
Save indicates an expected call of Save
type MockLogic ¶
type MockLogic struct {
// contains filtered or unexported fields
}
MockLogic is a mock of Logic interface
func NewMockLogic ¶
func NewMockLogic(ctrl *gomock.Controller) *MockLogic
NewMockLogic creates a new mock instance
func (*MockLogic) CollateralHealthCheck ¶
func (m *MockLogic) CollateralHealthCheck(input *entity.CollateralHealthCheckInput) ([]*entity.CollateralHealthCheckOutput, error)
CollateralHealthCheck mocks base method
func (*MockLogic) CreateAccount ¶
func (m *MockLogic) CreateAccount(input *entity.CreateAccountInput) (*entity.CreateAccountOutput, error)
CreateAccount mocks base method
func (*MockLogic) EXPECT ¶
func (m *MockLogic) EXPECT() *MockLogicMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLogic) ExportAccount ¶
func (m *MockLogic) ExportAccount(input *entity.ExportAccountInput) (*entity.ExportAccountOutput, error)
ExportAccount mocks base method
func (*MockLogic) GetCreditExchange ¶
func (m *MockLogic) GetCreditExchange(input *entity.GetCreditExchangeInput) (*entity.GetCreditExchangeOutput, error)
GetCreditExchange mocks base method
func (*MockLogic) ImportAccount ¶
func (m *MockLogic) ImportAccount(input *entity.ImportAccountInput) (*entity.ImportAccountOutput, error)
ImportAccount mocks base method
func (*MockLogic) ListAccount ¶
ListAccount mocks base method
func (*MockLogic) MintCreditByCollateral ¶
func (m *MockLogic) MintCreditByCollateral(input *entity.MintCreditByCollateralInput) (*entity.MintCreditByCollateralOutput, error)
MintCreditByCollateral mocks base method
func (*MockLogic) MintCreditByCredit ¶
func (m *MockLogic) MintCreditByCredit(input *entity.MintCreditByCreditInput) (*entity.MintCreditByCreditOutput, error)
MintCreditByCredit mocks base method
func (*MockLogic) RebalanceCollateral ¶
func (m *MockLogic) RebalanceCollateral(input *entity.RebalanceCollateralInput) ([]*entity.RebalanceCollateralOutput, error)
RebalanceCollateral mocks base method
func (*MockLogic) RedeemCredit ¶
func (m *MockLogic) RedeemCredit(input *entity.RedeemCreditInput) (*entity.RedeemCreditOutput, error)
RedeemCredit mocks base method
func (*MockLogic) SetDefaultAccount ¶
func (m *MockLogic) SetDefaultAccount(input *entity.SetDefaultAccountInput) (*entity.SetDefaultAccountOutput, error)
SetDefaultAccount mocks base method
func (*MockLogic) SetEnv ¶
func (m *MockLogic) SetEnv(input *entity.SetEnvInput) error
SetEnv mocks base method
func (*MockLogic) SetupCredit ¶
func (m *MockLogic) SetupCredit(input *entity.SetupCreditInput) (*entity.SetupCreditOutput, error)
SetupCredit mocks base method
type MockLogicMockRecorder ¶
type MockLogicMockRecorder struct {
// contains filtered or unexported fields
}
MockLogicMockRecorder is the mock recorder for MockLogic
func (*MockLogicMockRecorder) CollateralHealthCheck ¶
func (mr *MockLogicMockRecorder) CollateralHealthCheck(input interface{}) *gomock.Call
CollateralHealthCheck indicates an expected call of CollateralHealthCheck
func (*MockLogicMockRecorder) CreateAccount ¶
func (mr *MockLogicMockRecorder) CreateAccount(input interface{}) *gomock.Call
CreateAccount indicates an expected call of CreateAccount
func (*MockLogicMockRecorder) ExportAccount ¶
func (mr *MockLogicMockRecorder) ExportAccount(input interface{}) *gomock.Call
ExportAccount indicates an expected call of ExportAccount
func (*MockLogicMockRecorder) GetCreditExchange ¶
func (mr *MockLogicMockRecorder) GetCreditExchange(input interface{}) *gomock.Call
GetCreditExchange indicates an expected call of GetCreditExchange
func (*MockLogicMockRecorder) ImportAccount ¶
func (mr *MockLogicMockRecorder) ImportAccount(input interface{}) *gomock.Call
ImportAccount indicates an expected call of ImportAccount
func (*MockLogicMockRecorder) Init ¶
func (mr *MockLogicMockRecorder) Init(configFilePath interface{}) *gomock.Call
Init indicates an expected call of Init
func (*MockLogicMockRecorder) ListAccount ¶
func (mr *MockLogicMockRecorder) ListAccount() *gomock.Call
ListAccount indicates an expected call of ListAccount
func (*MockLogicMockRecorder) MintCreditByCollateral ¶
func (mr *MockLogicMockRecorder) MintCreditByCollateral(input interface{}) *gomock.Call
MintCreditByCollateral indicates an expected call of MintCreditByCollateral
func (*MockLogicMockRecorder) MintCreditByCredit ¶
func (mr *MockLogicMockRecorder) MintCreditByCredit(input interface{}) *gomock.Call
MintCreditByCredit indicates an expected call of MintCreditByCredit
func (*MockLogicMockRecorder) RebalanceCollateral ¶
func (mr *MockLogicMockRecorder) RebalanceCollateral(input interface{}) *gomock.Call
RebalanceCollateral indicates an expected call of RebalanceCollateral
func (*MockLogicMockRecorder) RedeemCredit ¶
func (mr *MockLogicMockRecorder) RedeemCredit(input interface{}) *gomock.Call
RedeemCredit indicates an expected call of RedeemCredit
func (*MockLogicMockRecorder) SetDefaultAccount ¶
func (mr *MockLogicMockRecorder) SetDefaultAccount(input interface{}) *gomock.Call
SetDefaultAccount indicates an expected call of SetDefaultAccount
func (*MockLogicMockRecorder) SetEnv ¶
func (mr *MockLogicMockRecorder) SetEnv(input interface{}) *gomock.Call
SetEnv indicates an expected call of SetEnv
func (*MockLogicMockRecorder) SetupCredit ¶
func (mr *MockLogicMockRecorder) SetupCredit(input interface{}) *gomock.Call
SetupCredit indicates an expected call of SetupCredit
type MockVFactoryRepo ¶
type MockVFactoryRepo struct {
// contains filtered or unexported fields
}
MockVFactoryRepo is a mock of Repository interface
func NewMockVFactoryRepo ¶
func NewMockVFactoryRepo(ctrl *gomock.Controller) *MockVFactoryRepo
NewMockVFactoryRepo creates a new mock instance
func (*MockVFactoryRepo) EXPECT ¶
func (m *MockVFactoryRepo) EXPECT() *MockVFactoryRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockVFactoryRepo) NewClient ¶
func (m *MockVFactoryRepo) NewClient(input *entity.NewClientInput) (ivclient.VClient, error)
NewClient mocks base method
func (*MockVFactoryRepo) NewClientFromConfig ¶
func (m *MockVFactoryRepo) NewClientFromConfig(privateKey string) (ivclient.VClient, error)
NewClientFromConfig mocks base method
type MockVFactoryRepoMockRecorder ¶
type MockVFactoryRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockVFactoryRepoMockRecorder is the mock recorder for MockVFactoryRepo
func (*MockVFactoryRepoMockRecorder) NewClient ¶
func (mr *MockVFactoryRepoMockRecorder) NewClient(input interface{}) *gomock.Call
NewClient indicates an expected call of NewClient
func (*MockVFactoryRepoMockRecorder) NewClientFromConfig ¶
func (mr *MockVFactoryRepoMockRecorder) NewClientFromConfig(privateKey interface{}) *gomock.Call
NewClientFromConfig indicates an expected call of NewClientFromConfig