Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAnnounce
- type MockAnnounceMockRecorder
- type MockHandle
- func (m *MockHandle) Begin()
- func (m *MockHandle) Commit() error
- func (m *MockHandle) EXPECT() *MockHandleMockRecorder
- func (m *MockHandle) Get(arg0 []byte) []byte
- func (m *MockHandle) GetN(arg0 []byte) (uint64, bool)
- func (m *MockHandle) GetNB(arg0 []byte) (uint64, []byte)
- func (m *MockHandle) Has(arg0 []byte) bool
- func (m *MockHandle) LastElement() (storage.Element, bool)
- func (m *MockHandle) NewFetchCursor() *storage.FetchCursor
- func (m *MockHandle) Put(arg0, arg1, arg2 []byte)
- func (m *MockHandle) PutN(arg0 []byte, arg1 uint64)
- func (m *MockHandle) Ready() bool
- func (m *MockHandle) Remove(arg0 []byte)
- type MockHandleMockRecorder
- func (mr *MockHandleMockRecorder) Begin() *gomock.Call
- func (mr *MockHandleMockRecorder) Commit() *gomock.Call
- func (mr *MockHandleMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockHandleMockRecorder) GetN(arg0 interface{}) *gomock.Call
- func (mr *MockHandleMockRecorder) GetNB(arg0 interface{}) *gomock.Call
- func (mr *MockHandleMockRecorder) Has(arg0 interface{}) *gomock.Call
- func (mr *MockHandleMockRecorder) LastElement() *gomock.Call
- func (mr *MockHandleMockRecorder) NewFetchCursor() *gomock.Call
- func (mr *MockHandleMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockHandleMockRecorder) PutN(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandleMockRecorder) Ready() *gomock.Call
- func (mr *MockHandleMockRecorder) Remove(arg0 interface{}) *gomock.Call
- type MockOwnership
- type MockOwnershipMockRecorder
- type MockQuery
- type MockQueryMockRecorder
- type MockRecord
- type MockRecordMockRecorder
- type MockReservoir
- func (m *MockReservoir) EXPECT() *MockReservoirMockRecorder
- func (m *MockReservoir) ShareBalance(arg0 *account.Account, arg1 merkle.Digest, arg2 int) ([]reservoir.BalanceInfo, error)
- func (m *MockReservoir) StoreGrant(arg0 *transactionrecord.ShareGrant) (*reservoir.GrantInfo, bool, error)
- func (m *MockReservoir) StoreIssues(issues []*transactionrecord.BitmarkIssue) (*reservoir.IssueInfo, bool, error)
- func (m *MockReservoir) StoreSwap(swap *transactionrecord.ShareSwap) (*reservoir.SwapInfo, bool, error)
- func (m *MockReservoir) StoreTransfer(arg0 transactionrecord.BitmarkTransfer) (*reservoir.TransferInfo, bool, error)
- func (m *MockReservoir) TransactionStatus(arg0 merkle.Digest) reservoir.TransactionState
- func (m *MockReservoir) TryProof(arg0 pay.PayId, arg1 []byte) reservoir.TrackingStatus
- type MockReservoirMockRecorder
- func (mr *MockReservoirMockRecorder) ShareBalance(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockReservoirMockRecorder) StoreGrant(arg0 interface{}) *gomock.Call
- func (mr *MockReservoirMockRecorder) StoreIssues(issues interface{}) *gomock.Call
- func (mr *MockReservoirMockRecorder) StoreSwap(swap interface{}) *gomock.Call
- func (mr *MockReservoirMockRecorder) StoreTransfer(arg0 interface{}) *gomock.Call
- func (mr *MockReservoirMockRecorder) TransactionStatus(arg0 interface{}) *gomock.Call
- func (mr *MockReservoirMockRecorder) TryProof(arg0, arg1 interface{}) *gomock.Call
- type MockRetrieve
- func (m *MockRetrieve) EXPECT() *MockRetrieveMockRecorder
- func (m *MockRetrieve) Get(arg0 []byte) []byte
- func (m *MockRetrieve) GetN(arg0 []byte) (uint64, bool)
- func (m *MockRetrieve) GetNB(arg0 []byte) (uint64, []byte)
- func (m *MockRetrieve) LastElement() (storage.Element, bool)
- func (m *MockRetrieve) NewFetchCursor() *storage.FetchCursor
- type MockRetrieveMockRecorder
- func (mr *MockRetrieveMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockRetrieveMockRecorder) GetN(arg0 interface{}) *gomock.Call
- func (mr *MockRetrieveMockRecorder) GetNB(arg0 interface{}) *gomock.Call
- func (mr *MockRetrieveMockRecorder) LastElement() *gomock.Call
- func (mr *MockRetrieveMockRecorder) NewFetchCursor() *gomock.Call
- type MockUpdate
- type MockUpdateMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAnnounce ¶
type MockAnnounce struct {
// contains filtered or unexported fields
}
MockAnnounce is a mock of Announce interface
func NewMockAnnounce ¶
func NewMockAnnounce(ctrl *gomock.Controller) *MockAnnounce
NewMockAnnounce creates a new mock instance
func (*MockAnnounce) EXPECT ¶
func (m *MockAnnounce) EXPECT() *MockAnnounceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAnnounce) Set ¶
func (m *MockAnnounce) Set(arg0 fingerprint.Fingerprint, arg1 []byte) error
Set mocks base method
type MockAnnounceMockRecorder ¶
type MockAnnounceMockRecorder struct {
// contains filtered or unexported fields
}
MockAnnounceMockRecorder is the mock recorder for MockAnnounce
func (*MockAnnounceMockRecorder) Fetch ¶
func (mr *MockAnnounceMockRecorder) Fetch(arg0, arg1 interface{}) *gomock.Call
Fetch indicates an expected call of Fetch
func (*MockAnnounceMockRecorder) Set ¶
func (mr *MockAnnounceMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set
type MockHandle ¶
type MockHandle struct {
// contains filtered or unexported fields
}
MockHandle is a mock of Handle interface
func NewMockHandle ¶
func NewMockHandle(ctrl *gomock.Controller) *MockHandle
NewMockHandle creates a new mock instance
func (*MockHandle) EXPECT ¶
func (m *MockHandle) EXPECT() *MockHandleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHandle) GetN ¶
func (m *MockHandle) GetN(arg0 []byte) (uint64, bool)
GetN mocks base method
func (*MockHandle) GetNB ¶
func (m *MockHandle) GetNB(arg0 []byte) (uint64, []byte)
GetNB mocks base method
func (*MockHandle) LastElement ¶
func (m *MockHandle) LastElement() (storage.Element, bool)
LastElement mocks base method
func (*MockHandle) NewFetchCursor ¶
func (m *MockHandle) NewFetchCursor() *storage.FetchCursor
NewFetchCursor mocks base method
func (*MockHandle) PutN ¶
func (m *MockHandle) PutN(arg0 []byte, arg1 uint64)
PutN mocks base method
type MockHandleMockRecorder ¶
type MockHandleMockRecorder struct {
// contains filtered or unexported fields
}
MockHandleMockRecorder is the mock recorder for MockHandle
func (*MockHandleMockRecorder) Begin ¶
func (mr *MockHandleMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin
func (*MockHandleMockRecorder) Commit ¶
func (mr *MockHandleMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit
func (*MockHandleMockRecorder) Get ¶
func (mr *MockHandleMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockHandleMockRecorder) GetN ¶
func (mr *MockHandleMockRecorder) GetN(arg0 interface{}) *gomock.Call
GetN indicates an expected call of GetN
func (*MockHandleMockRecorder) GetNB ¶
func (mr *MockHandleMockRecorder) GetNB(arg0 interface{}) *gomock.Call
GetNB indicates an expected call of GetNB
func (*MockHandleMockRecorder) Has ¶
func (mr *MockHandleMockRecorder) Has(arg0 interface{}) *gomock.Call
Has indicates an expected call of Has
func (*MockHandleMockRecorder) LastElement ¶
func (mr *MockHandleMockRecorder) LastElement() *gomock.Call
LastElement indicates an expected call of LastElement
func (*MockHandleMockRecorder) NewFetchCursor ¶
func (mr *MockHandleMockRecorder) NewFetchCursor() *gomock.Call
NewFetchCursor indicates an expected call of NewFetchCursor
func (*MockHandleMockRecorder) Put ¶
func (mr *MockHandleMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call
Put indicates an expected call of Put
func (*MockHandleMockRecorder) PutN ¶
func (mr *MockHandleMockRecorder) PutN(arg0, arg1 interface{}) *gomock.Call
PutN indicates an expected call of PutN
func (*MockHandleMockRecorder) Ready ¶
func (mr *MockHandleMockRecorder) Ready() *gomock.Call
Ready indicates an expected call of Ready
func (*MockHandleMockRecorder) Remove ¶
func (mr *MockHandleMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove
type MockOwnership ¶
type MockOwnership struct {
// contains filtered or unexported fields
}
MockOwnership is a mock of Ownership interface
func NewMockOwnership ¶
func NewMockOwnership(ctrl *gomock.Controller) *MockOwnership
NewMockOwnership creates a new mock instance
func (*MockOwnership) EXPECT ¶
func (m *MockOwnership) EXPECT() *MockOwnershipMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockOwnership) ListBitmarksFor ¶
func (m *MockOwnership) ListBitmarksFor(arg0 *account.Account, arg1 uint64, arg2 int) ([]ownership.Record, error)
ListBitmarksFor mocks base method
type MockOwnershipMockRecorder ¶
type MockOwnershipMockRecorder struct {
// contains filtered or unexported fields
}
MockOwnershipMockRecorder is the mock recorder for MockOwnership
func (*MockOwnershipMockRecorder) ListBitmarksFor ¶
func (mr *MockOwnershipMockRecorder) ListBitmarksFor(arg0, arg1, arg2 interface{}) *gomock.Call
ListBitmarksFor indicates an expected call of ListBitmarksFor
type MockQuery ¶
type MockQuery struct {
// contains filtered or unexported fields
}
MockQuery is a mock of Query interface
func NewMockQuery ¶
func NewMockQuery(ctrl *gomock.Controller) *MockQuery
NewMockQuery creates a new mock instance
func (*MockQuery) EXPECT ¶
func (m *MockQuery) EXPECT() *MockQueryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockQueryMockRecorder ¶
type MockQueryMockRecorder struct {
// contains filtered or unexported fields
}
MockQueryMockRecorder is the mock recorder for MockQuery
func (*MockQueryMockRecorder) Has ¶
func (mr *MockQueryMockRecorder) Has(arg0 interface{}) *gomock.Call
Has indicates an expected call of Has
func (*MockQueryMockRecorder) Ready ¶
func (mr *MockQueryMockRecorder) Ready() *gomock.Call
Ready indicates an expected call of Ready
type MockRecord ¶
type MockRecord struct {
// contains filtered or unexported fields
}
MockRecord is a mock of Record interface
func NewMockRecord ¶
func NewMockRecord(ctrl *gomock.Controller) *MockRecord
NewMockRecord creates a new mock instance
func (*MockRecord) EXPECT ¶
func (m *MockRecord) EXPECT() *MockRecordMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRecord) ExtractHeader ¶
func (m *MockRecord) ExtractHeader(arg0 []byte, arg1 uint64, arg2 bool) (*blockrecord.Header, blockdigest.Digest, []byte, error)
ExtractHeader mocks base method
type MockRecordMockRecorder ¶
type MockRecordMockRecorder struct {
// contains filtered or unexported fields
}
MockRecordMockRecorder is the mock recorder for MockRecord
func (*MockRecordMockRecorder) ExtractHeader ¶
func (mr *MockRecordMockRecorder) ExtractHeader(arg0, arg1, arg2 interface{}) *gomock.Call
ExtractHeader indicates an expected call of ExtractHeader
type MockReservoir ¶
type MockReservoir struct {
// contains filtered or unexported fields
}
MockReservoir is a mock of Reservoir interface
func NewMockReservoir ¶
func NewMockReservoir(ctrl *gomock.Controller) *MockReservoir
NewMockReservoir creates a new mock instance
func (*MockReservoir) EXPECT ¶
func (m *MockReservoir) EXPECT() *MockReservoirMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockReservoir) ShareBalance ¶
func (m *MockReservoir) ShareBalance(arg0 *account.Account, arg1 merkle.Digest, arg2 int) ([]reservoir.BalanceInfo, error)
ShareBalance mocks base method
func (*MockReservoir) StoreGrant ¶
func (m *MockReservoir) StoreGrant(arg0 *transactionrecord.ShareGrant) (*reservoir.GrantInfo, bool, error)
StoreGrant mocks base method
func (*MockReservoir) StoreIssues ¶
func (m *MockReservoir) StoreIssues(issues []*transactionrecord.BitmarkIssue) (*reservoir.IssueInfo, bool, error)
StoreIssues mocks base method
func (*MockReservoir) StoreSwap ¶
func (m *MockReservoir) StoreSwap(swap *transactionrecord.ShareSwap) (*reservoir.SwapInfo, bool, error)
StoreSwap mocks base method
func (*MockReservoir) StoreTransfer ¶
func (m *MockReservoir) StoreTransfer(arg0 transactionrecord.BitmarkTransfer) (*reservoir.TransferInfo, bool, error)
StoreTransfer mocks base method
func (*MockReservoir) TransactionStatus ¶
func (m *MockReservoir) TransactionStatus(arg0 merkle.Digest) reservoir.TransactionState
TransactionStatus mocks base method
func (*MockReservoir) TryProof ¶
func (m *MockReservoir) TryProof(arg0 pay.PayId, arg1 []byte) reservoir.TrackingStatus
TryProof mocks base method
type MockReservoirMockRecorder ¶
type MockReservoirMockRecorder struct {
// contains filtered or unexported fields
}
MockReservoirMockRecorder is the mock recorder for MockReservoir
func (*MockReservoirMockRecorder) ShareBalance ¶
func (mr *MockReservoirMockRecorder) ShareBalance(arg0, arg1, arg2 interface{}) *gomock.Call
ShareBalance indicates an expected call of ShareBalance
func (*MockReservoirMockRecorder) StoreGrant ¶
func (mr *MockReservoirMockRecorder) StoreGrant(arg0 interface{}) *gomock.Call
StoreGrant indicates an expected call of StoreGrant
func (*MockReservoirMockRecorder) StoreIssues ¶
func (mr *MockReservoirMockRecorder) StoreIssues(issues interface{}) *gomock.Call
StoreIssues indicates an expected call of StoreIssues
func (*MockReservoirMockRecorder) StoreSwap ¶
func (mr *MockReservoirMockRecorder) StoreSwap(swap interface{}) *gomock.Call
StoreSwap indicates an expected call of StoreSwap
func (*MockReservoirMockRecorder) StoreTransfer ¶
func (mr *MockReservoirMockRecorder) StoreTransfer(arg0 interface{}) *gomock.Call
StoreTransfer indicates an expected call of StoreTransfer
func (*MockReservoirMockRecorder) TransactionStatus ¶
func (mr *MockReservoirMockRecorder) TransactionStatus(arg0 interface{}) *gomock.Call
TransactionStatus indicates an expected call of TransactionStatus
func (*MockReservoirMockRecorder) TryProof ¶
func (mr *MockReservoirMockRecorder) TryProof(arg0, arg1 interface{}) *gomock.Call
TryProof indicates an expected call of TryProof
type MockRetrieve ¶
type MockRetrieve struct {
// contains filtered or unexported fields
}
MockRetrieve is a mock of Retrieve interface
func NewMockRetrieve ¶
func NewMockRetrieve(ctrl *gomock.Controller) *MockRetrieve
NewMockRetrieve creates a new mock instance
func (*MockRetrieve) EXPECT ¶
func (m *MockRetrieve) EXPECT() *MockRetrieveMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRetrieve) GetN ¶
func (m *MockRetrieve) GetN(arg0 []byte) (uint64, bool)
GetN mocks base method
func (*MockRetrieve) GetNB ¶
func (m *MockRetrieve) GetNB(arg0 []byte) (uint64, []byte)
GetNB mocks base method
func (*MockRetrieve) LastElement ¶
func (m *MockRetrieve) LastElement() (storage.Element, bool)
LastElement mocks base method
func (*MockRetrieve) NewFetchCursor ¶
func (m *MockRetrieve) NewFetchCursor() *storage.FetchCursor
NewFetchCursor mocks base method
type MockRetrieveMockRecorder ¶
type MockRetrieveMockRecorder struct {
// contains filtered or unexported fields
}
MockRetrieveMockRecorder is the mock recorder for MockRetrieve
func (*MockRetrieveMockRecorder) Get ¶
func (mr *MockRetrieveMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockRetrieveMockRecorder) GetN ¶
func (mr *MockRetrieveMockRecorder) GetN(arg0 interface{}) *gomock.Call
GetN indicates an expected call of GetN
func (*MockRetrieveMockRecorder) GetNB ¶
func (mr *MockRetrieveMockRecorder) GetNB(arg0 interface{}) *gomock.Call
GetNB indicates an expected call of GetNB
func (*MockRetrieveMockRecorder) LastElement ¶
func (mr *MockRetrieveMockRecorder) LastElement() *gomock.Call
LastElement indicates an expected call of LastElement
func (*MockRetrieveMockRecorder) NewFetchCursor ¶
func (mr *MockRetrieveMockRecorder) NewFetchCursor() *gomock.Call
NewFetchCursor indicates an expected call of NewFetchCursor
type MockUpdate ¶
type MockUpdate struct {
// contains filtered or unexported fields
}
MockUpdate is a mock of Update interface
func NewMockUpdate ¶
func NewMockUpdate(ctrl *gomock.Controller) *MockUpdate
NewMockUpdate creates a new mock instance
func (*MockUpdate) EXPECT ¶
func (m *MockUpdate) EXPECT() *MockUpdateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockUpdate) PutN ¶
func (m *MockUpdate) PutN(arg0 []byte, arg1 uint64)
PutN mocks base method
type MockUpdateMockRecorder ¶
type MockUpdateMockRecorder struct {
// contains filtered or unexported fields
}
MockUpdateMockRecorder is the mock recorder for MockUpdate
func (*MockUpdateMockRecorder) Put ¶
func (mr *MockUpdateMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call
Put indicates an expected call of Put
func (*MockUpdateMockRecorder) PutN ¶
func (mr *MockUpdateMockRecorder) PutN(arg0, arg1 interface{}) *gomock.Call
PutN indicates an expected call of PutN
func (*MockUpdateMockRecorder) Remove ¶
func (mr *MockUpdateMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove