Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockCelestialTransaction
- func (m *MockCelestialTransaction) Add(ctx context.Context, model any) error
- func (m *MockCelestialTransaction) BulkSave(ctx context.Context, models []any) error
- func (m *MockCelestialTransaction) Close(ctx context.Context) error
- func (m *MockCelestialTransaction) CopyFrom(ctx context.Context, tableName string, data []storage0.Copiable) error
- func (m *MockCelestialTransaction) EXPECT() *MockCelestialTransactionMockRecorder
- func (m *MockCelestialTransaction) Exec(ctx context.Context, query string, params ...any) (int64, error)
- func (m *MockCelestialTransaction) Flush(ctx context.Context) error
- func (m *MockCelestialTransaction) HandleError(ctx context.Context, err error) error
- func (m *MockCelestialTransaction) Rollback(ctx context.Context) error
- func (m *MockCelestialTransaction) SaveCelestials(ctx context.Context, celestials iter.Seq[storage.Celestial]) error
- func (m *MockCelestialTransaction) Tx() *bun.Tx
- func (m *MockCelestialTransaction) Update(ctx context.Context, model any) error
- func (m *MockCelestialTransaction) UpdateState(ctx context.Context, state *storage.CelestialState) error
- func (m *MockCelestialTransaction) UpdateStatusForAddress(ctx context.Context, addressId ...iter.Seq[uint64]) error
- type MockCelestialTransactionAddCall
- func (c *MockCelestialTransactionAddCall) Do(f func(context.Context, any) error) *MockCelestialTransactionAddCall
- func (c *MockCelestialTransactionAddCall) DoAndReturn(f func(context.Context, any) error) *MockCelestialTransactionAddCall
- func (c *MockCelestialTransactionAddCall) Return(arg0 error) *MockCelestialTransactionAddCall
- type MockCelestialTransactionBulkSaveCall
- func (c *MockCelestialTransactionBulkSaveCall) Do(f func(context.Context, []any) error) *MockCelestialTransactionBulkSaveCall
- func (c *MockCelestialTransactionBulkSaveCall) DoAndReturn(f func(context.Context, []any) error) *MockCelestialTransactionBulkSaveCall
- func (c *MockCelestialTransactionBulkSaveCall) Return(arg0 error) *MockCelestialTransactionBulkSaveCall
- type MockCelestialTransactionCloseCall
- func (c *MockCelestialTransactionCloseCall) Do(f func(context.Context) error) *MockCelestialTransactionCloseCall
- func (c *MockCelestialTransactionCloseCall) DoAndReturn(f func(context.Context) error) *MockCelestialTransactionCloseCall
- func (c *MockCelestialTransactionCloseCall) Return(arg0 error) *MockCelestialTransactionCloseCall
- type MockCelestialTransactionCopyFromCall
- func (c *MockCelestialTransactionCopyFromCall) Do(f func(context.Context, string, []storage0.Copiable) error) *MockCelestialTransactionCopyFromCall
- func (c *MockCelestialTransactionCopyFromCall) DoAndReturn(f func(context.Context, string, []storage0.Copiable) error) *MockCelestialTransactionCopyFromCall
- func (c *MockCelestialTransactionCopyFromCall) Return(arg0 error) *MockCelestialTransactionCopyFromCall
- type MockCelestialTransactionExecCall
- func (c *MockCelestialTransactionExecCall) Do(f func(context.Context, string, ...any) (int64, error)) *MockCelestialTransactionExecCall
- func (c *MockCelestialTransactionExecCall) DoAndReturn(f func(context.Context, string, ...any) (int64, error)) *MockCelestialTransactionExecCall
- func (c *MockCelestialTransactionExecCall) Return(arg0 int64, arg1 error) *MockCelestialTransactionExecCall
- type MockCelestialTransactionFlushCall
- func (c *MockCelestialTransactionFlushCall) Do(f func(context.Context) error) *MockCelestialTransactionFlushCall
- func (c *MockCelestialTransactionFlushCall) DoAndReturn(f func(context.Context) error) *MockCelestialTransactionFlushCall
- func (c *MockCelestialTransactionFlushCall) Return(arg0 error) *MockCelestialTransactionFlushCall
- type MockCelestialTransactionHandleErrorCall
- func (c *MockCelestialTransactionHandleErrorCall) Do(f func(context.Context, error) error) *MockCelestialTransactionHandleErrorCall
- func (c *MockCelestialTransactionHandleErrorCall) DoAndReturn(f func(context.Context, error) error) *MockCelestialTransactionHandleErrorCall
- func (c *MockCelestialTransactionHandleErrorCall) Return(arg0 error) *MockCelestialTransactionHandleErrorCall
- type MockCelestialTransactionMockRecorder
- func (mr *MockCelestialTransactionMockRecorder) Add(ctx, model any) *MockCelestialTransactionAddCall
- func (mr *MockCelestialTransactionMockRecorder) BulkSave(ctx, models any) *MockCelestialTransactionBulkSaveCall
- func (mr *MockCelestialTransactionMockRecorder) Close(ctx any) *MockCelestialTransactionCloseCall
- func (mr *MockCelestialTransactionMockRecorder) CopyFrom(ctx, tableName, data any) *MockCelestialTransactionCopyFromCall
- func (mr *MockCelestialTransactionMockRecorder) Exec(ctx, query any, params ...any) *MockCelestialTransactionExecCall
- func (mr *MockCelestialTransactionMockRecorder) Flush(ctx any) *MockCelestialTransactionFlushCall
- func (mr *MockCelestialTransactionMockRecorder) HandleError(ctx, err any) *MockCelestialTransactionHandleErrorCall
- func (mr *MockCelestialTransactionMockRecorder) Rollback(ctx any) *MockCelestialTransactionRollbackCall
- func (mr *MockCelestialTransactionMockRecorder) SaveCelestials(ctx, celestials any) *MockCelestialTransactionSaveCelestialsCall
- func (mr *MockCelestialTransactionMockRecorder) Tx() *MockCelestialTransactionTxCall
- func (mr *MockCelestialTransactionMockRecorder) Update(ctx, model any) *MockCelestialTransactionUpdateCall
- func (mr *MockCelestialTransactionMockRecorder) UpdateState(ctx, state any) *MockCelestialTransactionUpdateStateCall
- func (mr *MockCelestialTransactionMockRecorder) UpdateStatusForAddress(ctx any, addressId ...any) *MockCelestialTransactionUpdateStatusForAddressCall
- type MockCelestialTransactionRollbackCall
- func (c *MockCelestialTransactionRollbackCall) Do(f func(context.Context) error) *MockCelestialTransactionRollbackCall
- func (c *MockCelestialTransactionRollbackCall) DoAndReturn(f func(context.Context) error) *MockCelestialTransactionRollbackCall
- func (c *MockCelestialTransactionRollbackCall) Return(arg0 error) *MockCelestialTransactionRollbackCall
- type MockCelestialTransactionSaveCelestialsCall
- func (c *MockCelestialTransactionSaveCelestialsCall) Do(f func(context.Context, iter.Seq[storage.Celestial]) error) *MockCelestialTransactionSaveCelestialsCall
- func (c *MockCelestialTransactionSaveCelestialsCall) DoAndReturn(f func(context.Context, iter.Seq[storage.Celestial]) error) *MockCelestialTransactionSaveCelestialsCall
- func (c *MockCelestialTransactionSaveCelestialsCall) Return(arg0 error) *MockCelestialTransactionSaveCelestialsCall
- type MockCelestialTransactionTxCall
- type MockCelestialTransactionUpdateCall
- func (c *MockCelestialTransactionUpdateCall) Do(f func(context.Context, any) error) *MockCelestialTransactionUpdateCall
- func (c *MockCelestialTransactionUpdateCall) DoAndReturn(f func(context.Context, any) error) *MockCelestialTransactionUpdateCall
- func (c *MockCelestialTransactionUpdateCall) Return(arg0 error) *MockCelestialTransactionUpdateCall
- type MockCelestialTransactionUpdateStateCall
- func (c *MockCelestialTransactionUpdateStateCall) Do(f func(context.Context, *storage.CelestialState) error) *MockCelestialTransactionUpdateStateCall
- func (c *MockCelestialTransactionUpdateStateCall) DoAndReturn(f func(context.Context, *storage.CelestialState) error) *MockCelestialTransactionUpdateStateCall
- func (c *MockCelestialTransactionUpdateStateCall) Return(arg0 error) *MockCelestialTransactionUpdateStateCall
- type MockCelestialTransactionUpdateStatusForAddressCall
- func (c *MockCelestialTransactionUpdateStatusForAddressCall) Do(f func(context.Context, ...iter.Seq[uint64]) error) *MockCelestialTransactionUpdateStatusForAddressCall
- func (c *MockCelestialTransactionUpdateStatusForAddressCall) DoAndReturn(f func(context.Context, ...iter.Seq[uint64]) error) *MockCelestialTransactionUpdateStatusForAddressCall
- func (c *MockCelestialTransactionUpdateStatusForAddressCall) Return(arg0 error) *MockCelestialTransactionUpdateStatusForAddressCall
- type MockICelestial
- func (m *MockICelestial) ByAddressId(ctx context.Context, addressId uint64, limit, offset int) ([]storage.Celestial, error)
- func (m *MockICelestial) ById(ctx context.Context, id string) (storage.Celestial, error)
- func (m *MockICelestial) EXPECT() *MockICelestialMockRecorder
- func (m *MockICelestial) Primary(ctx context.Context, addressId uint64) (storage.Celestial, error)
- type MockICelestialByAddressIdCall
- func (c *MockICelestialByAddressIdCall) Do(f func(context.Context, uint64, int, int) ([]storage.Celestial, error)) *MockICelestialByAddressIdCall
- func (c *MockICelestialByAddressIdCall) DoAndReturn(f func(context.Context, uint64, int, int) ([]storage.Celestial, error)) *MockICelestialByAddressIdCall
- func (c *MockICelestialByAddressIdCall) Return(arg0 []storage.Celestial, arg1 error) *MockICelestialByAddressIdCall
- type MockICelestialByIdCall
- func (c *MockICelestialByIdCall) Do(f func(context.Context, string) (storage.Celestial, error)) *MockICelestialByIdCall
- func (c *MockICelestialByIdCall) DoAndReturn(f func(context.Context, string) (storage.Celestial, error)) *MockICelestialByIdCall
- func (c *MockICelestialByIdCall) Return(arg0 storage.Celestial, arg1 error) *MockICelestialByIdCall
- type MockICelestialMockRecorder
- type MockICelestialPrimaryCall
- func (c *MockICelestialPrimaryCall) Do(f func(context.Context, uint64) (storage.Celestial, error)) *MockICelestialPrimaryCall
- func (c *MockICelestialPrimaryCall) DoAndReturn(f func(context.Context, uint64) (storage.Celestial, error)) *MockICelestialPrimaryCall
- func (c *MockICelestialPrimaryCall) Return(arg0 storage.Celestial, arg1 error) *MockICelestialPrimaryCall
- type MockICelestialState
- type MockICelestialStateByNameCall
- func (c *MockICelestialStateByNameCall) Do(f func(context.Context, string) (storage.CelestialState, error)) *MockICelestialStateByNameCall
- func (c *MockICelestialStateByNameCall) DoAndReturn(f func(context.Context, string) (storage.CelestialState, error)) *MockICelestialStateByNameCall
- func (c *MockICelestialStateByNameCall) Return(arg0 storage.CelestialState, arg1 error) *MockICelestialStateByNameCall
- type MockICelestialStateMockRecorder
- type MockICelestialStateSaveCall
- func (c *MockICelestialStateSaveCall) Do(f func(context.Context, *storage.CelestialState) error) *MockICelestialStateSaveCall
- func (c *MockICelestialStateSaveCall) DoAndReturn(f func(context.Context, *storage.CelestialState) error) *MockICelestialStateSaveCall
- func (c *MockICelestialStateSaveCall) Return(arg0 error) *MockICelestialStateSaveCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCelestialTransaction ¶
type MockCelestialTransaction struct {
// contains filtered or unexported fields
}
MockCelestialTransaction is a mock of CelestialTransaction interface.
func NewMockCelestialTransaction ¶
func NewMockCelestialTransaction(ctrl *gomock.Controller) *MockCelestialTransaction
NewMockCelestialTransaction creates a new mock instance.
func (*MockCelestialTransaction) Add ¶
func (m *MockCelestialTransaction) Add(ctx context.Context, model any) error
Add mocks base method.
func (*MockCelestialTransaction) BulkSave ¶
func (m *MockCelestialTransaction) BulkSave(ctx context.Context, models []any) error
BulkSave mocks base method.
func (*MockCelestialTransaction) Close ¶
func (m *MockCelestialTransaction) Close(ctx context.Context) error
Close mocks base method.
func (*MockCelestialTransaction) CopyFrom ¶
func (m *MockCelestialTransaction) CopyFrom(ctx context.Context, tableName string, data []storage0.Copiable) error
CopyFrom mocks base method.
func (*MockCelestialTransaction) EXPECT ¶
func (m *MockCelestialTransaction) EXPECT() *MockCelestialTransactionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCelestialTransaction) Exec ¶
func (m *MockCelestialTransaction) Exec(ctx context.Context, query string, params ...any) (int64, error)
Exec mocks base method.
func (*MockCelestialTransaction) Flush ¶
func (m *MockCelestialTransaction) Flush(ctx context.Context) error
Flush mocks base method.
func (*MockCelestialTransaction) HandleError ¶
func (m *MockCelestialTransaction) HandleError(ctx context.Context, err error) error
HandleError mocks base method.
func (*MockCelestialTransaction) Rollback ¶
func (m *MockCelestialTransaction) Rollback(ctx context.Context) error
Rollback mocks base method.
func (*MockCelestialTransaction) SaveCelestials ¶
func (m *MockCelestialTransaction) SaveCelestials(ctx context.Context, celestials iter.Seq[storage.Celestial]) error
SaveCelestials mocks base method.
func (*MockCelestialTransaction) Tx ¶
func (m *MockCelestialTransaction) Tx() *bun.Tx
Tx mocks base method.
func (*MockCelestialTransaction) Update ¶
func (m *MockCelestialTransaction) Update(ctx context.Context, model any) error
Update mocks base method.
func (*MockCelestialTransaction) UpdateState ¶
func (m *MockCelestialTransaction) UpdateState(ctx context.Context, state *storage.CelestialState) error
UpdateState mocks base method.
func (*MockCelestialTransaction) UpdateStatusForAddress ¶ added in v0.0.3
func (m *MockCelestialTransaction) UpdateStatusForAddress(ctx context.Context, addressId ...iter.Seq[uint64]) error
UpdateStatusForAddress mocks base method.
type MockCelestialTransactionAddCall ¶
MockCelestialTransactionAddCall wrap *gomock.Call
func (*MockCelestialTransactionAddCall) Do ¶
func (c *MockCelestialTransactionAddCall) Do(f func(context.Context, any) error) *MockCelestialTransactionAddCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionAddCall) DoAndReturn ¶
func (c *MockCelestialTransactionAddCall) DoAndReturn(f func(context.Context, any) error) *MockCelestialTransactionAddCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionAddCall) Return ¶
func (c *MockCelestialTransactionAddCall) Return(arg0 error) *MockCelestialTransactionAddCall
Return rewrite *gomock.Call.Return
type MockCelestialTransactionBulkSaveCall ¶
MockCelestialTransactionBulkSaveCall wrap *gomock.Call
func (*MockCelestialTransactionBulkSaveCall) Do ¶
func (c *MockCelestialTransactionBulkSaveCall) Do(f func(context.Context, []any) error) *MockCelestialTransactionBulkSaveCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionBulkSaveCall) DoAndReturn ¶
func (c *MockCelestialTransactionBulkSaveCall) DoAndReturn(f func(context.Context, []any) error) *MockCelestialTransactionBulkSaveCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionBulkSaveCall) Return ¶
func (c *MockCelestialTransactionBulkSaveCall) Return(arg0 error) *MockCelestialTransactionBulkSaveCall
Return rewrite *gomock.Call.Return
type MockCelestialTransactionCloseCall ¶
MockCelestialTransactionCloseCall wrap *gomock.Call
func (*MockCelestialTransactionCloseCall) Do ¶
func (c *MockCelestialTransactionCloseCall) Do(f func(context.Context) error) *MockCelestialTransactionCloseCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionCloseCall) DoAndReturn ¶
func (c *MockCelestialTransactionCloseCall) DoAndReturn(f func(context.Context) error) *MockCelestialTransactionCloseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionCloseCall) Return ¶
func (c *MockCelestialTransactionCloseCall) Return(arg0 error) *MockCelestialTransactionCloseCall
Return rewrite *gomock.Call.Return
type MockCelestialTransactionCopyFromCall ¶
MockCelestialTransactionCopyFromCall wrap *gomock.Call
func (*MockCelestialTransactionCopyFromCall) Do ¶
func (c *MockCelestialTransactionCopyFromCall) Do(f func(context.Context, string, []storage0.Copiable) error) *MockCelestialTransactionCopyFromCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionCopyFromCall) DoAndReturn ¶
func (c *MockCelestialTransactionCopyFromCall) DoAndReturn(f func(context.Context, string, []storage0.Copiable) error) *MockCelestialTransactionCopyFromCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionCopyFromCall) Return ¶
func (c *MockCelestialTransactionCopyFromCall) Return(arg0 error) *MockCelestialTransactionCopyFromCall
Return rewrite *gomock.Call.Return
type MockCelestialTransactionExecCall ¶
MockCelestialTransactionExecCall wrap *gomock.Call
func (*MockCelestialTransactionExecCall) Do ¶
func (c *MockCelestialTransactionExecCall) Do(f func(context.Context, string, ...any) (int64, error)) *MockCelestialTransactionExecCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionExecCall) DoAndReturn ¶
func (c *MockCelestialTransactionExecCall) DoAndReturn(f func(context.Context, string, ...any) (int64, error)) *MockCelestialTransactionExecCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionExecCall) Return ¶
func (c *MockCelestialTransactionExecCall) Return(arg0 int64, arg1 error) *MockCelestialTransactionExecCall
Return rewrite *gomock.Call.Return
type MockCelestialTransactionFlushCall ¶
MockCelestialTransactionFlushCall wrap *gomock.Call
func (*MockCelestialTransactionFlushCall) Do ¶
func (c *MockCelestialTransactionFlushCall) Do(f func(context.Context) error) *MockCelestialTransactionFlushCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionFlushCall) DoAndReturn ¶
func (c *MockCelestialTransactionFlushCall) DoAndReturn(f func(context.Context) error) *MockCelestialTransactionFlushCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionFlushCall) Return ¶
func (c *MockCelestialTransactionFlushCall) Return(arg0 error) *MockCelestialTransactionFlushCall
Return rewrite *gomock.Call.Return
type MockCelestialTransactionHandleErrorCall ¶
MockCelestialTransactionHandleErrorCall wrap *gomock.Call
func (*MockCelestialTransactionHandleErrorCall) Do ¶
func (c *MockCelestialTransactionHandleErrorCall) Do(f func(context.Context, error) error) *MockCelestialTransactionHandleErrorCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionHandleErrorCall) DoAndReturn ¶
func (c *MockCelestialTransactionHandleErrorCall) DoAndReturn(f func(context.Context, error) error) *MockCelestialTransactionHandleErrorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionHandleErrorCall) Return ¶
func (c *MockCelestialTransactionHandleErrorCall) Return(arg0 error) *MockCelestialTransactionHandleErrorCall
Return rewrite *gomock.Call.Return
type MockCelestialTransactionMockRecorder ¶
type MockCelestialTransactionMockRecorder struct {
// contains filtered or unexported fields
}
MockCelestialTransactionMockRecorder is the mock recorder for MockCelestialTransaction.
func (*MockCelestialTransactionMockRecorder) Add ¶
func (mr *MockCelestialTransactionMockRecorder) Add(ctx, model any) *MockCelestialTransactionAddCall
Add indicates an expected call of Add.
func (*MockCelestialTransactionMockRecorder) BulkSave ¶
func (mr *MockCelestialTransactionMockRecorder) BulkSave(ctx, models any) *MockCelestialTransactionBulkSaveCall
BulkSave indicates an expected call of BulkSave.
func (*MockCelestialTransactionMockRecorder) Close ¶
func (mr *MockCelestialTransactionMockRecorder) Close(ctx any) *MockCelestialTransactionCloseCall
Close indicates an expected call of Close.
func (*MockCelestialTransactionMockRecorder) CopyFrom ¶
func (mr *MockCelestialTransactionMockRecorder) CopyFrom(ctx, tableName, data any) *MockCelestialTransactionCopyFromCall
CopyFrom indicates an expected call of CopyFrom.
func (*MockCelestialTransactionMockRecorder) Exec ¶
func (mr *MockCelestialTransactionMockRecorder) Exec(ctx, query any, params ...any) *MockCelestialTransactionExecCall
Exec indicates an expected call of Exec.
func (*MockCelestialTransactionMockRecorder) Flush ¶
func (mr *MockCelestialTransactionMockRecorder) Flush(ctx any) *MockCelestialTransactionFlushCall
Flush indicates an expected call of Flush.
func (*MockCelestialTransactionMockRecorder) HandleError ¶
func (mr *MockCelestialTransactionMockRecorder) HandleError(ctx, err any) *MockCelestialTransactionHandleErrorCall
HandleError indicates an expected call of HandleError.
func (*MockCelestialTransactionMockRecorder) Rollback ¶
func (mr *MockCelestialTransactionMockRecorder) Rollback(ctx any) *MockCelestialTransactionRollbackCall
Rollback indicates an expected call of Rollback.
func (*MockCelestialTransactionMockRecorder) SaveCelestials ¶
func (mr *MockCelestialTransactionMockRecorder) SaveCelestials(ctx, celestials any) *MockCelestialTransactionSaveCelestialsCall
SaveCelestials indicates an expected call of SaveCelestials.
func (*MockCelestialTransactionMockRecorder) Tx ¶
func (mr *MockCelestialTransactionMockRecorder) Tx() *MockCelestialTransactionTxCall
Tx indicates an expected call of Tx.
func (*MockCelestialTransactionMockRecorder) Update ¶
func (mr *MockCelestialTransactionMockRecorder) Update(ctx, model any) *MockCelestialTransactionUpdateCall
Update indicates an expected call of Update.
func (*MockCelestialTransactionMockRecorder) UpdateState ¶
func (mr *MockCelestialTransactionMockRecorder) UpdateState(ctx, state any) *MockCelestialTransactionUpdateStateCall
UpdateState indicates an expected call of UpdateState.
func (*MockCelestialTransactionMockRecorder) UpdateStatusForAddress ¶ added in v0.0.3
func (mr *MockCelestialTransactionMockRecorder) UpdateStatusForAddress(ctx any, addressId ...any) *MockCelestialTransactionUpdateStatusForAddressCall
UpdateStatusForAddress indicates an expected call of UpdateStatusForAddress.
type MockCelestialTransactionRollbackCall ¶
MockCelestialTransactionRollbackCall wrap *gomock.Call
func (*MockCelestialTransactionRollbackCall) Do ¶
func (c *MockCelestialTransactionRollbackCall) Do(f func(context.Context) error) *MockCelestialTransactionRollbackCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionRollbackCall) DoAndReturn ¶
func (c *MockCelestialTransactionRollbackCall) DoAndReturn(f func(context.Context) error) *MockCelestialTransactionRollbackCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionRollbackCall) Return ¶
func (c *MockCelestialTransactionRollbackCall) Return(arg0 error) *MockCelestialTransactionRollbackCall
Return rewrite *gomock.Call.Return
type MockCelestialTransactionSaveCelestialsCall ¶
MockCelestialTransactionSaveCelestialsCall wrap *gomock.Call
func (*MockCelestialTransactionSaveCelestialsCall) Do ¶
func (c *MockCelestialTransactionSaveCelestialsCall) Do(f func(context.Context, iter.Seq[storage.Celestial]) error) *MockCelestialTransactionSaveCelestialsCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionSaveCelestialsCall) DoAndReturn ¶
func (c *MockCelestialTransactionSaveCelestialsCall) DoAndReturn(f func(context.Context, iter.Seq[storage.Celestial]) error) *MockCelestialTransactionSaveCelestialsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionSaveCelestialsCall) Return ¶
func (c *MockCelestialTransactionSaveCelestialsCall) Return(arg0 error) *MockCelestialTransactionSaveCelestialsCall
Return rewrite *gomock.Call.Return
type MockCelestialTransactionTxCall ¶
MockCelestialTransactionTxCall wrap *gomock.Call
func (*MockCelestialTransactionTxCall) Do ¶
func (c *MockCelestialTransactionTxCall) Do(f func() *bun.Tx) *MockCelestialTransactionTxCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionTxCall) DoAndReturn ¶
func (c *MockCelestialTransactionTxCall) DoAndReturn(f func() *bun.Tx) *MockCelestialTransactionTxCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionTxCall) Return ¶
func (c *MockCelestialTransactionTxCall) Return(arg0 *bun.Tx) *MockCelestialTransactionTxCall
Return rewrite *gomock.Call.Return
type MockCelestialTransactionUpdateCall ¶
MockCelestialTransactionUpdateCall wrap *gomock.Call
func (*MockCelestialTransactionUpdateCall) Do ¶
func (c *MockCelestialTransactionUpdateCall) Do(f func(context.Context, any) error) *MockCelestialTransactionUpdateCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionUpdateCall) DoAndReturn ¶
func (c *MockCelestialTransactionUpdateCall) DoAndReturn(f func(context.Context, any) error) *MockCelestialTransactionUpdateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionUpdateCall) Return ¶
func (c *MockCelestialTransactionUpdateCall) Return(arg0 error) *MockCelestialTransactionUpdateCall
Return rewrite *gomock.Call.Return
type MockCelestialTransactionUpdateStateCall ¶
MockCelestialTransactionUpdateStateCall wrap *gomock.Call
func (*MockCelestialTransactionUpdateStateCall) Do ¶
func (c *MockCelestialTransactionUpdateStateCall) Do(f func(context.Context, *storage.CelestialState) error) *MockCelestialTransactionUpdateStateCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionUpdateStateCall) DoAndReturn ¶
func (c *MockCelestialTransactionUpdateStateCall) DoAndReturn(f func(context.Context, *storage.CelestialState) error) *MockCelestialTransactionUpdateStateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionUpdateStateCall) Return ¶
func (c *MockCelestialTransactionUpdateStateCall) Return(arg0 error) *MockCelestialTransactionUpdateStateCall
Return rewrite *gomock.Call.Return
type MockCelestialTransactionUpdateStatusForAddressCall ¶ added in v0.0.3
MockCelestialTransactionUpdateStatusForAddressCall wrap *gomock.Call
func (*MockCelestialTransactionUpdateStatusForAddressCall) Do ¶ added in v0.0.3
func (c *MockCelestialTransactionUpdateStatusForAddressCall) Do(f func(context.Context, ...iter.Seq[uint64]) error) *MockCelestialTransactionUpdateStatusForAddressCall
Do rewrite *gomock.Call.Do
func (*MockCelestialTransactionUpdateStatusForAddressCall) DoAndReturn ¶ added in v0.0.3
func (c *MockCelestialTransactionUpdateStatusForAddressCall) DoAndReturn(f func(context.Context, ...iter.Seq[uint64]) error) *MockCelestialTransactionUpdateStatusForAddressCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCelestialTransactionUpdateStatusForAddressCall) Return ¶ added in v0.0.3
func (c *MockCelestialTransactionUpdateStatusForAddressCall) Return(arg0 error) *MockCelestialTransactionUpdateStatusForAddressCall
Return rewrite *gomock.Call.Return
type MockICelestial ¶
type MockICelestial struct {
// contains filtered or unexported fields
}
MockICelestial is a mock of ICelestial interface.
func NewMockICelestial ¶
func NewMockICelestial(ctrl *gomock.Controller) *MockICelestial
NewMockICelestial creates a new mock instance.
func (*MockICelestial) ByAddressId ¶
func (m *MockICelestial) ByAddressId(ctx context.Context, addressId uint64, limit, offset int) ([]storage.Celestial, error)
ByAddressId mocks base method.
func (*MockICelestial) EXPECT ¶
func (m *MockICelestial) EXPECT() *MockICelestialMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockICelestialByAddressIdCall ¶
MockICelestialByAddressIdCall wrap *gomock.Call
func (*MockICelestialByAddressIdCall) Do ¶
func (c *MockICelestialByAddressIdCall) Do(f func(context.Context, uint64, int, int) ([]storage.Celestial, error)) *MockICelestialByAddressIdCall
Do rewrite *gomock.Call.Do
func (*MockICelestialByAddressIdCall) DoAndReturn ¶
func (c *MockICelestialByAddressIdCall) DoAndReturn(f func(context.Context, uint64, int, int) ([]storage.Celestial, error)) *MockICelestialByAddressIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockICelestialByAddressIdCall) Return ¶
func (c *MockICelestialByAddressIdCall) Return(arg0 []storage.Celestial, arg1 error) *MockICelestialByAddressIdCall
Return rewrite *gomock.Call.Return
type MockICelestialByIdCall ¶
MockICelestialByIdCall wrap *gomock.Call
func (*MockICelestialByIdCall) Do ¶
func (c *MockICelestialByIdCall) Do(f func(context.Context, string) (storage.Celestial, error)) *MockICelestialByIdCall
Do rewrite *gomock.Call.Do
func (*MockICelestialByIdCall) DoAndReturn ¶
func (c *MockICelestialByIdCall) DoAndReturn(f func(context.Context, string) (storage.Celestial, error)) *MockICelestialByIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockICelestialByIdCall) Return ¶
func (c *MockICelestialByIdCall) Return(arg0 storage.Celestial, arg1 error) *MockICelestialByIdCall
Return rewrite *gomock.Call.Return
type MockICelestialMockRecorder ¶
type MockICelestialMockRecorder struct {
// contains filtered or unexported fields
}
MockICelestialMockRecorder is the mock recorder for MockICelestial.
func (*MockICelestialMockRecorder) ByAddressId ¶
func (mr *MockICelestialMockRecorder) ByAddressId(ctx, addressId, limit, offset any) *MockICelestialByAddressIdCall
ByAddressId indicates an expected call of ByAddressId.
func (*MockICelestialMockRecorder) ById ¶
func (mr *MockICelestialMockRecorder) ById(ctx, id any) *MockICelestialByIdCall
ById indicates an expected call of ById.
func (*MockICelestialMockRecorder) Primary ¶ added in v0.0.3
func (mr *MockICelestialMockRecorder) Primary(ctx, addressId any) *MockICelestialPrimaryCall
Primary indicates an expected call of Primary.
type MockICelestialPrimaryCall ¶ added in v0.0.3
MockICelestialPrimaryCall wrap *gomock.Call
func (*MockICelestialPrimaryCall) Do ¶ added in v0.0.3
func (c *MockICelestialPrimaryCall) Do(f func(context.Context, uint64) (storage.Celestial, error)) *MockICelestialPrimaryCall
Do rewrite *gomock.Call.Do
func (*MockICelestialPrimaryCall) DoAndReturn ¶ added in v0.0.3
func (c *MockICelestialPrimaryCall) DoAndReturn(f func(context.Context, uint64) (storage.Celestial, error)) *MockICelestialPrimaryCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockICelestialPrimaryCall) Return ¶ added in v0.0.3
func (c *MockICelestialPrimaryCall) Return(arg0 storage.Celestial, arg1 error) *MockICelestialPrimaryCall
Return rewrite *gomock.Call.Return
type MockICelestialState ¶
type MockICelestialState struct {
// contains filtered or unexported fields
}
MockICelestialState is a mock of ICelestialState interface.
func NewMockICelestialState ¶
func NewMockICelestialState(ctrl *gomock.Controller) *MockICelestialState
NewMockICelestialState creates a new mock instance.
func (*MockICelestialState) ByName ¶
func (m *MockICelestialState) ByName(ctx context.Context, name string) (storage.CelestialState, error)
ByName mocks base method.
func (*MockICelestialState) EXPECT ¶
func (m *MockICelestialState) EXPECT() *MockICelestialStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockICelestialState) Save ¶
func (m *MockICelestialState) Save(ctx context.Context, state *storage.CelestialState) error
Save mocks base method.
type MockICelestialStateByNameCall ¶
MockICelestialStateByNameCall wrap *gomock.Call
func (*MockICelestialStateByNameCall) Do ¶
func (c *MockICelestialStateByNameCall) Do(f func(context.Context, string) (storage.CelestialState, error)) *MockICelestialStateByNameCall
Do rewrite *gomock.Call.Do
func (*MockICelestialStateByNameCall) DoAndReturn ¶
func (c *MockICelestialStateByNameCall) DoAndReturn(f func(context.Context, string) (storage.CelestialState, error)) *MockICelestialStateByNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockICelestialStateByNameCall) Return ¶
func (c *MockICelestialStateByNameCall) Return(arg0 storage.CelestialState, arg1 error) *MockICelestialStateByNameCall
Return rewrite *gomock.Call.Return
type MockICelestialStateMockRecorder ¶
type MockICelestialStateMockRecorder struct {
// contains filtered or unexported fields
}
MockICelestialStateMockRecorder is the mock recorder for MockICelestialState.
func (*MockICelestialStateMockRecorder) ByName ¶
func (mr *MockICelestialStateMockRecorder) ByName(ctx, name any) *MockICelestialStateByNameCall
ByName indicates an expected call of ByName.
func (*MockICelestialStateMockRecorder) Save ¶
func (mr *MockICelestialStateMockRecorder) Save(ctx, state any) *MockICelestialStateSaveCall
Save indicates an expected call of Save.
type MockICelestialStateSaveCall ¶
MockICelestialStateSaveCall wrap *gomock.Call
func (*MockICelestialStateSaveCall) Do ¶
func (c *MockICelestialStateSaveCall) Do(f func(context.Context, *storage.CelestialState) error) *MockICelestialStateSaveCall
Do rewrite *gomock.Call.Do
func (*MockICelestialStateSaveCall) DoAndReturn ¶
func (c *MockICelestialStateSaveCall) DoAndReturn(f func(context.Context, *storage.CelestialState) error) *MockICelestialStateSaveCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockICelestialStateSaveCall) Return ¶
func (c *MockICelestialStateSaveCall) Return(arg0 error) *MockICelestialStateSaveCall
Return rewrite *gomock.Call.Return