mock

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

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

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

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

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

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

type MockCelestialTransactionAddCall struct {
	*gomock.Call
}

MockCelestialTransactionAddCall wrap *gomock.Call

func (*MockCelestialTransactionAddCall) Do

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionAddCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionAddCall) Return

Return rewrite *gomock.Call.Return

type MockCelestialTransactionBulkSaveCall

type MockCelestialTransactionBulkSaveCall struct {
	*gomock.Call
}

MockCelestialTransactionBulkSaveCall wrap *gomock.Call

func (*MockCelestialTransactionBulkSaveCall) Do

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionBulkSaveCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionBulkSaveCall) Return

Return rewrite *gomock.Call.Return

type MockCelestialTransactionCloseCall

type MockCelestialTransactionCloseCall struct {
	*gomock.Call
}

MockCelestialTransactionCloseCall wrap *gomock.Call

func (*MockCelestialTransactionCloseCall) Do

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionCloseCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionCloseCall) Return

Return rewrite *gomock.Call.Return

type MockCelestialTransactionCopyFromCall

type MockCelestialTransactionCopyFromCall struct {
	*gomock.Call
}

MockCelestialTransactionCopyFromCall wrap *gomock.Call

func (*MockCelestialTransactionCopyFromCall) Do

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionCopyFromCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionCopyFromCall) Return

Return rewrite *gomock.Call.Return

type MockCelestialTransactionExecCall

type MockCelestialTransactionExecCall struct {
	*gomock.Call
}

MockCelestialTransactionExecCall wrap *gomock.Call

func (*MockCelestialTransactionExecCall) Do

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionExecCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionExecCall) Return

Return rewrite *gomock.Call.Return

type MockCelestialTransactionFlushCall

type MockCelestialTransactionFlushCall struct {
	*gomock.Call
}

MockCelestialTransactionFlushCall wrap *gomock.Call

func (*MockCelestialTransactionFlushCall) Do

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionFlushCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionFlushCall) Return

Return rewrite *gomock.Call.Return

type MockCelestialTransactionHandleErrorCall

type MockCelestialTransactionHandleErrorCall struct {
	*gomock.Call
}

MockCelestialTransactionHandleErrorCall wrap *gomock.Call

func (*MockCelestialTransactionHandleErrorCall) Do

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionHandleErrorCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionHandleErrorCall) Return

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

Add indicates an expected call of Add.

func (*MockCelestialTransactionMockRecorder) BulkSave

BulkSave indicates an expected call of BulkSave.

func (*MockCelestialTransactionMockRecorder) Close

Close indicates an expected call of Close.

func (*MockCelestialTransactionMockRecorder) CopyFrom

CopyFrom indicates an expected call of CopyFrom.

func (*MockCelestialTransactionMockRecorder) Exec

Exec indicates an expected call of Exec.

func (*MockCelestialTransactionMockRecorder) Flush

Flush indicates an expected call of Flush.

func (*MockCelestialTransactionMockRecorder) HandleError

HandleError indicates an expected call of HandleError.

func (*MockCelestialTransactionMockRecorder) Rollback

Rollback indicates an expected call of Rollback.

func (*MockCelestialTransactionMockRecorder) SaveCelestials

SaveCelestials indicates an expected call of SaveCelestials.

func (*MockCelestialTransactionMockRecorder) Tx

Tx indicates an expected call of Tx.

func (*MockCelestialTransactionMockRecorder) Update

Update indicates an expected call of Update.

func (*MockCelestialTransactionMockRecorder) UpdateState

UpdateState indicates an expected call of UpdateState.

func (*MockCelestialTransactionMockRecorder) UpdateStatusForAddress added in v0.0.3

UpdateStatusForAddress indicates an expected call of UpdateStatusForAddress.

type MockCelestialTransactionRollbackCall

type MockCelestialTransactionRollbackCall struct {
	*gomock.Call
}

MockCelestialTransactionRollbackCall wrap *gomock.Call

func (*MockCelestialTransactionRollbackCall) Do

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionRollbackCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionRollbackCall) Return

Return rewrite *gomock.Call.Return

type MockCelestialTransactionSaveCelestialsCall

type MockCelestialTransactionSaveCelestialsCall struct {
	*gomock.Call
}

MockCelestialTransactionSaveCelestialsCall wrap *gomock.Call

func (*MockCelestialTransactionSaveCelestialsCall) Do

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionSaveCelestialsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionSaveCelestialsCall) Return

Return rewrite *gomock.Call.Return

type MockCelestialTransactionTxCall

type MockCelestialTransactionTxCall struct {
	*gomock.Call
}

MockCelestialTransactionTxCall wrap *gomock.Call

func (*MockCelestialTransactionTxCall) Do

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionTxCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionTxCall) Return

Return rewrite *gomock.Call.Return

type MockCelestialTransactionUpdateCall

type MockCelestialTransactionUpdateCall struct {
	*gomock.Call
}

MockCelestialTransactionUpdateCall wrap *gomock.Call

func (*MockCelestialTransactionUpdateCall) Do

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionUpdateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionUpdateCall) Return

Return rewrite *gomock.Call.Return

type MockCelestialTransactionUpdateStateCall

type MockCelestialTransactionUpdateStateCall struct {
	*gomock.Call
}

MockCelestialTransactionUpdateStateCall wrap *gomock.Call

func (*MockCelestialTransactionUpdateStateCall) Do

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionUpdateStateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionUpdateStateCall) Return

Return rewrite *gomock.Call.Return

type MockCelestialTransactionUpdateStatusForAddressCall added in v0.0.3

type MockCelestialTransactionUpdateStatusForAddressCall struct {
	*gomock.Call
}

MockCelestialTransactionUpdateStatusForAddressCall wrap *gomock.Call

func (*MockCelestialTransactionUpdateStatusForAddressCall) Do added in v0.0.3

Do rewrite *gomock.Call.Do

func (*MockCelestialTransactionUpdateStatusForAddressCall) DoAndReturn added in v0.0.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCelestialTransactionUpdateStatusForAddressCall) Return added in v0.0.3

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) ById

ById mocks base method.

func (*MockICelestial) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockICelestial) Primary added in v0.0.3

func (m *MockICelestial) Primary(ctx context.Context, addressId uint64) (storage.Celestial, error)

Primary mocks base method.

type MockICelestialByAddressIdCall

type MockICelestialByAddressIdCall struct {
	*gomock.Call
}

MockICelestialByAddressIdCall wrap *gomock.Call

func (*MockICelestialByAddressIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockICelestialByAddressIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockICelestialByAddressIdCall) Return

Return rewrite *gomock.Call.Return

type MockICelestialByIdCall

type MockICelestialByIdCall struct {
	*gomock.Call
}

MockICelestialByIdCall wrap *gomock.Call

func (*MockICelestialByIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockICelestialByIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockICelestialByIdCall) Return

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

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

type MockICelestialPrimaryCall struct {
	*gomock.Call
}

MockICelestialPrimaryCall wrap *gomock.Call

func (*MockICelestialPrimaryCall) Do added in v0.0.3

Do rewrite *gomock.Call.Do

func (*MockICelestialPrimaryCall) DoAndReturn added in v0.0.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockICelestialPrimaryCall) Return added in v0.0.3

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

ByName mocks base method.

func (*MockICelestialState) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockICelestialState) Save

Save mocks base method.

type MockICelestialStateByNameCall

type MockICelestialStateByNameCall struct {
	*gomock.Call
}

MockICelestialStateByNameCall wrap *gomock.Call

func (*MockICelestialStateByNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockICelestialStateByNameCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockICelestialStateByNameCall) Return

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

ByName indicates an expected call of ByName.

func (*MockICelestialStateMockRecorder) Save

Save indicates an expected call of Save.

type MockICelestialStateSaveCall

type MockICelestialStateSaveCall struct {
	*gomock.Call
}

MockICelestialStateSaveCall wrap *gomock.Call

func (*MockICelestialStateSaveCall) Do

Do rewrite *gomock.Call.Do

func (*MockICelestialStateSaveCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockICelestialStateSaveCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL