Documentation ¶
Index ¶
- type ChatServiceMock
- func (mmCreate *ChatServiceMock) Create(ctx context.Context, chat *model.Chat) (i1 int64, err error)
- func (mmCreate *ChatServiceMock) CreateAfterCounter() uint64
- func (mmCreate *ChatServiceMock) CreateBeforeCounter() uint64
- func (mmDelete *ChatServiceMock) Delete(ctx context.Context, id int64) (err error)
- func (mmDelete *ChatServiceMock) DeleteAfterCounter() uint64
- func (mmDelete *ChatServiceMock) DeleteBeforeCounter() uint64
- func (m *ChatServiceMock) MinimockCreateDone() bool
- func (m *ChatServiceMock) MinimockCreateInspect()
- func (m *ChatServiceMock) MinimockDeleteDone() bool
- func (m *ChatServiceMock) MinimockDeleteInspect()
- func (m *ChatServiceMock) MinimockFinish()
- func (m *ChatServiceMock) MinimockSendMessageDone() bool
- func (m *ChatServiceMock) MinimockSendMessageInspect()
- func (m *ChatServiceMock) MinimockWait(timeout mm_time.Duration)
- func (mmSendMessage *ChatServiceMock) SendMessage(ctx context.Context, message *model.Message) (err error)
- func (mmSendMessage *ChatServiceMock) SendMessageAfterCounter() uint64
- func (mmSendMessage *ChatServiceMock) SendMessageBeforeCounter() uint64
- type ChatServiceMockCreateExpectation
- type ChatServiceMockCreateParams
- type ChatServiceMockCreateResults
- type ChatServiceMockDeleteExpectation
- type ChatServiceMockDeleteParams
- type ChatServiceMockDeleteResults
- type ChatServiceMockSendMessageExpectation
- type ChatServiceMockSendMessageParams
- type ChatServiceMockSendMessageResults
- type FakeTxMock
- func (mmBegin *FakeTxMock) Begin(ctx context.Context) (t1 pgx.Tx, err error)
- func (mmBegin *FakeTxMock) BeginAfterCounter() uint64
- func (mmBegin *FakeTxMock) BeginBeforeCounter() uint64
- func (mmBeginFunc *FakeTxMock) BeginFunc(ctx context.Context, f func(pgx.Tx) error) (err error)
- func (mmBeginFunc *FakeTxMock) BeginFuncAfterCounter() uint64
- func (mmBeginFunc *FakeTxMock) BeginFuncBeforeCounter() uint64
- func (mmCommit *FakeTxMock) Commit(ctx context.Context) (err error)
- func (mmCommit *FakeTxMock) CommitAfterCounter() uint64
- func (mmCommit *FakeTxMock) CommitBeforeCounter() uint64
- func (mmConn *FakeTxMock) Conn() (cp1 *pgx.Conn)
- func (mmConn *FakeTxMock) ConnAfterCounter() uint64
- func (mmConn *FakeTxMock) ConnBeforeCounter() uint64
- func (mmCopyFrom *FakeTxMock) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, ...) (i1 int64, err error)
- func (mmCopyFrom *FakeTxMock) CopyFromAfterCounter() uint64
- func (mmCopyFrom *FakeTxMock) CopyFromBeforeCounter() uint64
- func (mmExec *FakeTxMock) Exec(ctx context.Context, sql string, arguments ...interface{}) (commandTag pgconn.CommandTag, err error)
- func (mmExec *FakeTxMock) ExecAfterCounter() uint64
- func (mmExec *FakeTxMock) ExecBeforeCounter() uint64
- func (mmLargeObjects *FakeTxMock) LargeObjects() (l1 pgx.LargeObjects)
- func (mmLargeObjects *FakeTxMock) LargeObjectsAfterCounter() uint64
- func (mmLargeObjects *FakeTxMock) LargeObjectsBeforeCounter() uint64
- func (m *FakeTxMock) MinimockBeginDone() bool
- func (m *FakeTxMock) MinimockBeginFuncDone() bool
- func (m *FakeTxMock) MinimockBeginFuncInspect()
- func (m *FakeTxMock) MinimockBeginInspect()
- func (m *FakeTxMock) MinimockCommitDone() bool
- func (m *FakeTxMock) MinimockCommitInspect()
- func (m *FakeTxMock) MinimockConnDone() bool
- func (m *FakeTxMock) MinimockConnInspect()
- func (m *FakeTxMock) MinimockCopyFromDone() bool
- func (m *FakeTxMock) MinimockCopyFromInspect()
- func (m *FakeTxMock) MinimockExecDone() bool
- func (m *FakeTxMock) MinimockExecInspect()
- func (m *FakeTxMock) MinimockFinish()
- func (m *FakeTxMock) MinimockLargeObjectsDone() bool
- func (m *FakeTxMock) MinimockLargeObjectsInspect()
- func (m *FakeTxMock) MinimockPrepareDone() bool
- func (m *FakeTxMock) MinimockPrepareInspect()
- func (m *FakeTxMock) MinimockQueryDone() bool
- func (m *FakeTxMock) MinimockQueryFuncDone() bool
- func (m *FakeTxMock) MinimockQueryFuncInspect()
- func (m *FakeTxMock) MinimockQueryInspect()
- func (m *FakeTxMock) MinimockQueryRowDone() bool
- func (m *FakeTxMock) MinimockQueryRowInspect()
- func (m *FakeTxMock) MinimockRollbackDone() bool
- func (m *FakeTxMock) MinimockRollbackInspect()
- func (m *FakeTxMock) MinimockSendBatchDone() bool
- func (m *FakeTxMock) MinimockSendBatchInspect()
- func (m *FakeTxMock) MinimockWait(timeout mm_time.Duration)
- func (mmPrepare *FakeTxMock) Prepare(ctx context.Context, name string, sql string) (sp1 *pgconn.StatementDescription, err error)
- func (mmPrepare *FakeTxMock) PrepareAfterCounter() uint64
- func (mmPrepare *FakeTxMock) PrepareBeforeCounter() uint64
- func (mmQuery *FakeTxMock) Query(ctx context.Context, sql string, args ...interface{}) (r1 pgx.Rows, err error)
- func (mmQuery *FakeTxMock) QueryAfterCounter() uint64
- func (mmQuery *FakeTxMock) QueryBeforeCounter() uint64
- func (mmQueryFunc *FakeTxMock) QueryFunc(ctx context.Context, sql string, args []interface{}, scans []interface{}, ...) (c2 pgconn.CommandTag, err error)
- func (mmQueryFunc *FakeTxMock) QueryFuncAfterCounter() uint64
- func (mmQueryFunc *FakeTxMock) QueryFuncBeforeCounter() uint64
- func (mmQueryRow *FakeTxMock) QueryRow(ctx context.Context, sql string, args ...interface{}) (r1 pgx.Row)
- func (mmQueryRow *FakeTxMock) QueryRowAfterCounter() uint64
- func (mmQueryRow *FakeTxMock) QueryRowBeforeCounter() uint64
- func (mmRollback *FakeTxMock) Rollback(ctx context.Context) (err error)
- func (mmRollback *FakeTxMock) RollbackAfterCounter() uint64
- func (mmRollback *FakeTxMock) RollbackBeforeCounter() uint64
- func (mmSendBatch *FakeTxMock) SendBatch(ctx context.Context, b *pgx.Batch) (b1 pgx.BatchResults)
- func (mmSendBatch *FakeTxMock) SendBatchAfterCounter() uint64
- func (mmSendBatch *FakeTxMock) SendBatchBeforeCounter() uint64
- type FakeTxMockBeginExpectation
- type FakeTxMockBeginFuncExpectation
- type FakeTxMockBeginFuncParams
- type FakeTxMockBeginFuncResults
- type FakeTxMockBeginParams
- type FakeTxMockBeginResults
- type FakeTxMockCommitExpectation
- type FakeTxMockCommitParams
- type FakeTxMockCommitResults
- type FakeTxMockConnExpectation
- type FakeTxMockConnResults
- type FakeTxMockCopyFromExpectation
- type FakeTxMockCopyFromParams
- type FakeTxMockCopyFromResults
- type FakeTxMockExecExpectation
- type FakeTxMockExecParams
- type FakeTxMockExecResults
- type FakeTxMockLargeObjectsExpectation
- type FakeTxMockLargeObjectsResults
- type FakeTxMockPrepareExpectation
- type FakeTxMockPrepareParams
- type FakeTxMockPrepareResults
- type FakeTxMockQueryExpectation
- type FakeTxMockQueryFuncExpectation
- type FakeTxMockQueryFuncParams
- type FakeTxMockQueryFuncResults
- type FakeTxMockQueryParams
- type FakeTxMockQueryResults
- type FakeTxMockQueryRowExpectation
- type FakeTxMockQueryRowParams
- type FakeTxMockQueryRowResults
- type FakeTxMockRollbackExpectation
- type FakeTxMockRollbackParams
- type FakeTxMockRollbackResults
- type FakeTxMockSendBatchExpectation
- type FakeTxMockSendBatchParams
- type FakeTxMockSendBatchResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatServiceMock ¶
type ChatServiceMock struct { CreateMock mChatServiceMockCreate DeleteMock mChatServiceMockDelete SendMessageMock mChatServiceMockSendMessage // contains filtered or unexported fields }
ChatServiceMock implements service.ChatService
func NewChatServiceMock ¶
func NewChatServiceMock(t minimock.Tester) *ChatServiceMock
NewChatServiceMock returns a mock for service.ChatService
func (*ChatServiceMock) Create ¶
func (mmCreate *ChatServiceMock) Create(ctx context.Context, chat *model.Chat) (i1 int64, err error)
Create implements service.ChatService
func (*ChatServiceMock) CreateAfterCounter ¶
func (mmCreate *ChatServiceMock) CreateAfterCounter() uint64
CreateAfterCounter returns a count of finished ChatServiceMock.Create invocations
func (*ChatServiceMock) CreateBeforeCounter ¶
func (mmCreate *ChatServiceMock) CreateBeforeCounter() uint64
CreateBeforeCounter returns a count of ChatServiceMock.Create invocations
func (*ChatServiceMock) Delete ¶
func (mmDelete *ChatServiceMock) Delete(ctx context.Context, id int64) (err error)
Delete implements service.ChatService
func (*ChatServiceMock) DeleteAfterCounter ¶
func (mmDelete *ChatServiceMock) DeleteAfterCounter() uint64
DeleteAfterCounter returns a count of finished ChatServiceMock.Delete invocations
func (*ChatServiceMock) DeleteBeforeCounter ¶
func (mmDelete *ChatServiceMock) DeleteBeforeCounter() uint64
DeleteBeforeCounter returns a count of ChatServiceMock.Delete invocations
func (*ChatServiceMock) MinimockCreateDone ¶
func (m *ChatServiceMock) MinimockCreateDone() bool
MinimockCreateDone returns true if the count of the Create invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockCreateInspect ¶
func (m *ChatServiceMock) MinimockCreateInspect()
MinimockCreateInspect logs each unmet expectation
func (*ChatServiceMock) MinimockDeleteDone ¶
func (m *ChatServiceMock) MinimockDeleteDone() bool
MinimockDeleteDone returns true if the count of the Delete invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockDeleteInspect ¶
func (m *ChatServiceMock) MinimockDeleteInspect()
MinimockDeleteInspect logs each unmet expectation
func (*ChatServiceMock) MinimockFinish ¶
func (m *ChatServiceMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ChatServiceMock) MinimockSendMessageDone ¶
func (m *ChatServiceMock) MinimockSendMessageDone() bool
MinimockSendMessageDone returns true if the count of the SendMessage invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockSendMessageInspect ¶
func (m *ChatServiceMock) MinimockSendMessageInspect()
MinimockSendMessageInspect logs each unmet expectation
func (*ChatServiceMock) MinimockWait ¶
func (m *ChatServiceMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*ChatServiceMock) SendMessage ¶
func (mmSendMessage *ChatServiceMock) SendMessage(ctx context.Context, message *model.Message) (err error)
SendMessage implements service.ChatService
func (*ChatServiceMock) SendMessageAfterCounter ¶
func (mmSendMessage *ChatServiceMock) SendMessageAfterCounter() uint64
SendMessageAfterCounter returns a count of finished ChatServiceMock.SendMessage invocations
func (*ChatServiceMock) SendMessageBeforeCounter ¶
func (mmSendMessage *ChatServiceMock) SendMessageBeforeCounter() uint64
SendMessageBeforeCounter returns a count of ChatServiceMock.SendMessage invocations
type ChatServiceMockCreateExpectation ¶
type ChatServiceMockCreateExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockCreateExpectation specifies expectation struct of the ChatService.Create
func (*ChatServiceMockCreateExpectation) Then ¶
func (e *ChatServiceMockCreateExpectation) Then(i1 int64, err error) *ChatServiceMock
Then sets up ChatService.Create return parameters for the expectation previously defined by the When method
type ChatServiceMockCreateParams ¶
type ChatServiceMockCreateParams struct {
// contains filtered or unexported fields
}
ChatServiceMockCreateParams contains parameters of the ChatService.Create
type ChatServiceMockCreateResults ¶
type ChatServiceMockCreateResults struct {
// contains filtered or unexported fields
}
ChatServiceMockCreateResults contains results of the ChatService.Create
type ChatServiceMockDeleteExpectation ¶
type ChatServiceMockDeleteExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockDeleteExpectation specifies expectation struct of the ChatService.Delete
func (*ChatServiceMockDeleteExpectation) Then ¶
func (e *ChatServiceMockDeleteExpectation) Then(err error) *ChatServiceMock
Then sets up ChatService.Delete return parameters for the expectation previously defined by the When method
type ChatServiceMockDeleteParams ¶
type ChatServiceMockDeleteParams struct {
// contains filtered or unexported fields
}
ChatServiceMockDeleteParams contains parameters of the ChatService.Delete
type ChatServiceMockDeleteResults ¶
type ChatServiceMockDeleteResults struct {
// contains filtered or unexported fields
}
ChatServiceMockDeleteResults contains results of the ChatService.Delete
type ChatServiceMockSendMessageExpectation ¶
type ChatServiceMockSendMessageExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockSendMessageExpectation specifies expectation struct of the ChatService.SendMessage
func (*ChatServiceMockSendMessageExpectation) Then ¶
func (e *ChatServiceMockSendMessageExpectation) Then(err error) *ChatServiceMock
Then sets up ChatService.SendMessage return parameters for the expectation previously defined by the When method
type ChatServiceMockSendMessageParams ¶
type ChatServiceMockSendMessageParams struct {
// contains filtered or unexported fields
}
ChatServiceMockSendMessageParams contains parameters of the ChatService.SendMessage
type ChatServiceMockSendMessageResults ¶
type ChatServiceMockSendMessageResults struct {
// contains filtered or unexported fields
}
ChatServiceMockSendMessageResults contains results of the ChatService.SendMessage
type FakeTxMock ¶
type FakeTxMock struct { BeginMock mFakeTxMockBegin BeginFuncMock mFakeTxMockBeginFunc CommitMock mFakeTxMockCommit ConnMock mFakeTxMockConn CopyFromMock mFakeTxMockCopyFrom ExecMock mFakeTxMockExec LargeObjectsMock mFakeTxMockLargeObjects PrepareMock mFakeTxMockPrepare QueryMock mFakeTxMockQuery QueryFuncMock mFakeTxMockQueryFunc QueryRowMock mFakeTxMockQueryRow RollbackMock mFakeTxMockRollback SendBatchMock mFakeTxMockSendBatch // contains filtered or unexported fields }
FakeTxMock implements service.FakeTx
func NewFakeTxMock ¶
func NewFakeTxMock(t minimock.Tester) *FakeTxMock
NewFakeTxMock returns a mock for service.FakeTx
func (*FakeTxMock) Begin ¶
func (mmBegin *FakeTxMock) Begin(ctx context.Context) (t1 pgx.Tx, err error)
Begin implements service.FakeTx
func (*FakeTxMock) BeginAfterCounter ¶
func (mmBegin *FakeTxMock) BeginAfterCounter() uint64
BeginAfterCounter returns a count of finished FakeTxMock.Begin invocations
func (*FakeTxMock) BeginBeforeCounter ¶
func (mmBegin *FakeTxMock) BeginBeforeCounter() uint64
BeginBeforeCounter returns a count of FakeTxMock.Begin invocations
func (*FakeTxMock) BeginFunc ¶
func (mmBeginFunc *FakeTxMock) BeginFunc(ctx context.Context, f func(pgx.Tx) error) (err error)
BeginFunc implements service.FakeTx
func (*FakeTxMock) BeginFuncAfterCounter ¶
func (mmBeginFunc *FakeTxMock) BeginFuncAfterCounter() uint64
BeginFuncAfterCounter returns a count of finished FakeTxMock.BeginFunc invocations
func (*FakeTxMock) BeginFuncBeforeCounter ¶
func (mmBeginFunc *FakeTxMock) BeginFuncBeforeCounter() uint64
BeginFuncBeforeCounter returns a count of FakeTxMock.BeginFunc invocations
func (*FakeTxMock) Commit ¶
func (mmCommit *FakeTxMock) Commit(ctx context.Context) (err error)
Commit implements service.FakeTx
func (*FakeTxMock) CommitAfterCounter ¶
func (mmCommit *FakeTxMock) CommitAfterCounter() uint64
CommitAfterCounter returns a count of finished FakeTxMock.Commit invocations
func (*FakeTxMock) CommitBeforeCounter ¶
func (mmCommit *FakeTxMock) CommitBeforeCounter() uint64
CommitBeforeCounter returns a count of FakeTxMock.Commit invocations
func (*FakeTxMock) Conn ¶
func (mmConn *FakeTxMock) Conn() (cp1 *pgx.Conn)
Conn implements service.FakeTx
func (*FakeTxMock) ConnAfterCounter ¶
func (mmConn *FakeTxMock) ConnAfterCounter() uint64
ConnAfterCounter returns a count of finished FakeTxMock.Conn invocations
func (*FakeTxMock) ConnBeforeCounter ¶
func (mmConn *FakeTxMock) ConnBeforeCounter() uint64
ConnBeforeCounter returns a count of FakeTxMock.Conn invocations
func (*FakeTxMock) CopyFrom ¶
func (mmCopyFrom *FakeTxMock) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (i1 int64, err error)
CopyFrom implements service.FakeTx
func (*FakeTxMock) CopyFromAfterCounter ¶
func (mmCopyFrom *FakeTxMock) CopyFromAfterCounter() uint64
CopyFromAfterCounter returns a count of finished FakeTxMock.CopyFrom invocations
func (*FakeTxMock) CopyFromBeforeCounter ¶
func (mmCopyFrom *FakeTxMock) CopyFromBeforeCounter() uint64
CopyFromBeforeCounter returns a count of FakeTxMock.CopyFrom invocations
func (*FakeTxMock) Exec ¶
func (mmExec *FakeTxMock) Exec(ctx context.Context, sql string, arguments ...interface{}) (commandTag pgconn.CommandTag, err error)
Exec implements service.FakeTx
func (*FakeTxMock) ExecAfterCounter ¶
func (mmExec *FakeTxMock) ExecAfterCounter() uint64
ExecAfterCounter returns a count of finished FakeTxMock.Exec invocations
func (*FakeTxMock) ExecBeforeCounter ¶
func (mmExec *FakeTxMock) ExecBeforeCounter() uint64
ExecBeforeCounter returns a count of FakeTxMock.Exec invocations
func (*FakeTxMock) LargeObjects ¶
func (mmLargeObjects *FakeTxMock) LargeObjects() (l1 pgx.LargeObjects)
LargeObjects implements service.FakeTx
func (*FakeTxMock) LargeObjectsAfterCounter ¶
func (mmLargeObjects *FakeTxMock) LargeObjectsAfterCounter() uint64
LargeObjectsAfterCounter returns a count of finished FakeTxMock.LargeObjects invocations
func (*FakeTxMock) LargeObjectsBeforeCounter ¶
func (mmLargeObjects *FakeTxMock) LargeObjectsBeforeCounter() uint64
LargeObjectsBeforeCounter returns a count of FakeTxMock.LargeObjects invocations
func (*FakeTxMock) MinimockBeginDone ¶
func (m *FakeTxMock) MinimockBeginDone() bool
MinimockBeginDone returns true if the count of the Begin invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockBeginFuncDone ¶
func (m *FakeTxMock) MinimockBeginFuncDone() bool
MinimockBeginFuncDone returns true if the count of the BeginFunc invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockBeginFuncInspect ¶
func (m *FakeTxMock) MinimockBeginFuncInspect()
MinimockBeginFuncInspect logs each unmet expectation
func (*FakeTxMock) MinimockBeginInspect ¶
func (m *FakeTxMock) MinimockBeginInspect()
MinimockBeginInspect logs each unmet expectation
func (*FakeTxMock) MinimockCommitDone ¶
func (m *FakeTxMock) MinimockCommitDone() bool
MinimockCommitDone returns true if the count of the Commit invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockCommitInspect ¶
func (m *FakeTxMock) MinimockCommitInspect()
MinimockCommitInspect logs each unmet expectation
func (*FakeTxMock) MinimockConnDone ¶
func (m *FakeTxMock) MinimockConnDone() bool
MinimockConnDone returns true if the count of the Conn invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockConnInspect ¶
func (m *FakeTxMock) MinimockConnInspect()
MinimockConnInspect logs each unmet expectation
func (*FakeTxMock) MinimockCopyFromDone ¶
func (m *FakeTxMock) MinimockCopyFromDone() bool
MinimockCopyFromDone returns true if the count of the CopyFrom invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockCopyFromInspect ¶
func (m *FakeTxMock) MinimockCopyFromInspect()
MinimockCopyFromInspect logs each unmet expectation
func (*FakeTxMock) MinimockExecDone ¶
func (m *FakeTxMock) MinimockExecDone() bool
MinimockExecDone returns true if the count of the Exec invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockExecInspect ¶
func (m *FakeTxMock) MinimockExecInspect()
MinimockExecInspect logs each unmet expectation
func (*FakeTxMock) MinimockFinish ¶
func (m *FakeTxMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*FakeTxMock) MinimockLargeObjectsDone ¶
func (m *FakeTxMock) MinimockLargeObjectsDone() bool
MinimockLargeObjectsDone returns true if the count of the LargeObjects invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockLargeObjectsInspect ¶
func (m *FakeTxMock) MinimockLargeObjectsInspect()
MinimockLargeObjectsInspect logs each unmet expectation
func (*FakeTxMock) MinimockPrepareDone ¶
func (m *FakeTxMock) MinimockPrepareDone() bool
MinimockPrepareDone returns true if the count of the Prepare invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockPrepareInspect ¶
func (m *FakeTxMock) MinimockPrepareInspect()
MinimockPrepareInspect logs each unmet expectation
func (*FakeTxMock) MinimockQueryDone ¶
func (m *FakeTxMock) MinimockQueryDone() bool
MinimockQueryDone returns true if the count of the Query invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockQueryFuncDone ¶
func (m *FakeTxMock) MinimockQueryFuncDone() bool
MinimockQueryFuncDone returns true if the count of the QueryFunc invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockQueryFuncInspect ¶
func (m *FakeTxMock) MinimockQueryFuncInspect()
MinimockQueryFuncInspect logs each unmet expectation
func (*FakeTxMock) MinimockQueryInspect ¶
func (m *FakeTxMock) MinimockQueryInspect()
MinimockQueryInspect logs each unmet expectation
func (*FakeTxMock) MinimockQueryRowDone ¶
func (m *FakeTxMock) MinimockQueryRowDone() bool
MinimockQueryRowDone returns true if the count of the QueryRow invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockQueryRowInspect ¶
func (m *FakeTxMock) MinimockQueryRowInspect()
MinimockQueryRowInspect logs each unmet expectation
func (*FakeTxMock) MinimockRollbackDone ¶
func (m *FakeTxMock) MinimockRollbackDone() bool
MinimockRollbackDone returns true if the count of the Rollback invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockRollbackInspect ¶
func (m *FakeTxMock) MinimockRollbackInspect()
MinimockRollbackInspect logs each unmet expectation
func (*FakeTxMock) MinimockSendBatchDone ¶
func (m *FakeTxMock) MinimockSendBatchDone() bool
MinimockSendBatchDone returns true if the count of the SendBatch invocations corresponds the number of defined expectations
func (*FakeTxMock) MinimockSendBatchInspect ¶
func (m *FakeTxMock) MinimockSendBatchInspect()
MinimockSendBatchInspect logs each unmet expectation
func (*FakeTxMock) MinimockWait ¶
func (m *FakeTxMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*FakeTxMock) Prepare ¶
func (mmPrepare *FakeTxMock) Prepare(ctx context.Context, name string, sql string) (sp1 *pgconn.StatementDescription, err error)
Prepare implements service.FakeTx
func (*FakeTxMock) PrepareAfterCounter ¶
func (mmPrepare *FakeTxMock) PrepareAfterCounter() uint64
PrepareAfterCounter returns a count of finished FakeTxMock.Prepare invocations
func (*FakeTxMock) PrepareBeforeCounter ¶
func (mmPrepare *FakeTxMock) PrepareBeforeCounter() uint64
PrepareBeforeCounter returns a count of FakeTxMock.Prepare invocations
func (*FakeTxMock) Query ¶
func (mmQuery *FakeTxMock) Query(ctx context.Context, sql string, args ...interface{}) (r1 pgx.Rows, err error)
Query implements service.FakeTx
func (*FakeTxMock) QueryAfterCounter ¶
func (mmQuery *FakeTxMock) QueryAfterCounter() uint64
QueryAfterCounter returns a count of finished FakeTxMock.Query invocations
func (*FakeTxMock) QueryBeforeCounter ¶
func (mmQuery *FakeTxMock) QueryBeforeCounter() uint64
QueryBeforeCounter returns a count of FakeTxMock.Query invocations
func (*FakeTxMock) QueryFunc ¶
func (mmQueryFunc *FakeTxMock) QueryFunc(ctx context.Context, sql string, args []interface{}, scans []interface{}, f func(pgx.QueryFuncRow) error) (c2 pgconn.CommandTag, err error)
QueryFunc implements service.FakeTx
func (*FakeTxMock) QueryFuncAfterCounter ¶
func (mmQueryFunc *FakeTxMock) QueryFuncAfterCounter() uint64
QueryFuncAfterCounter returns a count of finished FakeTxMock.QueryFunc invocations
func (*FakeTxMock) QueryFuncBeforeCounter ¶
func (mmQueryFunc *FakeTxMock) QueryFuncBeforeCounter() uint64
QueryFuncBeforeCounter returns a count of FakeTxMock.QueryFunc invocations
func (*FakeTxMock) QueryRow ¶
func (mmQueryRow *FakeTxMock) QueryRow(ctx context.Context, sql string, args ...interface{}) (r1 pgx.Row)
QueryRow implements service.FakeTx
func (*FakeTxMock) QueryRowAfterCounter ¶
func (mmQueryRow *FakeTxMock) QueryRowAfterCounter() uint64
QueryRowAfterCounter returns a count of finished FakeTxMock.QueryRow invocations
func (*FakeTxMock) QueryRowBeforeCounter ¶
func (mmQueryRow *FakeTxMock) QueryRowBeforeCounter() uint64
QueryRowBeforeCounter returns a count of FakeTxMock.QueryRow invocations
func (*FakeTxMock) Rollback ¶
func (mmRollback *FakeTxMock) Rollback(ctx context.Context) (err error)
Rollback implements service.FakeTx
func (*FakeTxMock) RollbackAfterCounter ¶
func (mmRollback *FakeTxMock) RollbackAfterCounter() uint64
RollbackAfterCounter returns a count of finished FakeTxMock.Rollback invocations
func (*FakeTxMock) RollbackBeforeCounter ¶
func (mmRollback *FakeTxMock) RollbackBeforeCounter() uint64
RollbackBeforeCounter returns a count of FakeTxMock.Rollback invocations
func (*FakeTxMock) SendBatch ¶
func (mmSendBatch *FakeTxMock) SendBatch(ctx context.Context, b *pgx.Batch) (b1 pgx.BatchResults)
SendBatch implements service.FakeTx
func (*FakeTxMock) SendBatchAfterCounter ¶
func (mmSendBatch *FakeTxMock) SendBatchAfterCounter() uint64
SendBatchAfterCounter returns a count of finished FakeTxMock.SendBatch invocations
func (*FakeTxMock) SendBatchBeforeCounter ¶
func (mmSendBatch *FakeTxMock) SendBatchBeforeCounter() uint64
SendBatchBeforeCounter returns a count of FakeTxMock.SendBatch invocations
type FakeTxMockBeginExpectation ¶
type FakeTxMockBeginExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockBeginExpectation specifies expectation struct of the FakeTx.Begin
func (*FakeTxMockBeginExpectation) Then ¶
func (e *FakeTxMockBeginExpectation) Then(t1 pgx.Tx, err error) *FakeTxMock
Then sets up FakeTx.Begin return parameters for the expectation previously defined by the When method
type FakeTxMockBeginFuncExpectation ¶
type FakeTxMockBeginFuncExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockBeginFuncExpectation specifies expectation struct of the FakeTx.BeginFunc
func (*FakeTxMockBeginFuncExpectation) Then ¶
func (e *FakeTxMockBeginFuncExpectation) Then(err error) *FakeTxMock
Then sets up FakeTx.BeginFunc return parameters for the expectation previously defined by the When method
type FakeTxMockBeginFuncParams ¶
type FakeTxMockBeginFuncParams struct {
// contains filtered or unexported fields
}
FakeTxMockBeginFuncParams contains parameters of the FakeTx.BeginFunc
type FakeTxMockBeginFuncResults ¶
type FakeTxMockBeginFuncResults struct {
// contains filtered or unexported fields
}
FakeTxMockBeginFuncResults contains results of the FakeTx.BeginFunc
type FakeTxMockBeginParams ¶
type FakeTxMockBeginParams struct {
// contains filtered or unexported fields
}
FakeTxMockBeginParams contains parameters of the FakeTx.Begin
type FakeTxMockBeginResults ¶
type FakeTxMockBeginResults struct {
// contains filtered or unexported fields
}
FakeTxMockBeginResults contains results of the FakeTx.Begin
type FakeTxMockCommitExpectation ¶
type FakeTxMockCommitExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockCommitExpectation specifies expectation struct of the FakeTx.Commit
func (*FakeTxMockCommitExpectation) Then ¶
func (e *FakeTxMockCommitExpectation) Then(err error) *FakeTxMock
Then sets up FakeTx.Commit return parameters for the expectation previously defined by the When method
type FakeTxMockCommitParams ¶
type FakeTxMockCommitParams struct {
// contains filtered or unexported fields
}
FakeTxMockCommitParams contains parameters of the FakeTx.Commit
type FakeTxMockCommitResults ¶
type FakeTxMockCommitResults struct {
// contains filtered or unexported fields
}
FakeTxMockCommitResults contains results of the FakeTx.Commit
type FakeTxMockConnExpectation ¶
type FakeTxMockConnExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockConnExpectation specifies expectation struct of the FakeTx.Conn
type FakeTxMockConnResults ¶
type FakeTxMockConnResults struct {
// contains filtered or unexported fields
}
FakeTxMockConnResults contains results of the FakeTx.Conn
type FakeTxMockCopyFromExpectation ¶
type FakeTxMockCopyFromExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockCopyFromExpectation specifies expectation struct of the FakeTx.CopyFrom
func (*FakeTxMockCopyFromExpectation) Then ¶
func (e *FakeTxMockCopyFromExpectation) Then(i1 int64, err error) *FakeTxMock
Then sets up FakeTx.CopyFrom return parameters for the expectation previously defined by the When method
type FakeTxMockCopyFromParams ¶
type FakeTxMockCopyFromParams struct {
// contains filtered or unexported fields
}
FakeTxMockCopyFromParams contains parameters of the FakeTx.CopyFrom
type FakeTxMockCopyFromResults ¶
type FakeTxMockCopyFromResults struct {
// contains filtered or unexported fields
}
FakeTxMockCopyFromResults contains results of the FakeTx.CopyFrom
type FakeTxMockExecExpectation ¶
type FakeTxMockExecExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockExecExpectation specifies expectation struct of the FakeTx.Exec
func (*FakeTxMockExecExpectation) Then ¶
func (e *FakeTxMockExecExpectation) Then(commandTag pgconn.CommandTag, err error) *FakeTxMock
Then sets up FakeTx.Exec return parameters for the expectation previously defined by the When method
type FakeTxMockExecParams ¶
type FakeTxMockExecParams struct {
// contains filtered or unexported fields
}
FakeTxMockExecParams contains parameters of the FakeTx.Exec
type FakeTxMockExecResults ¶
type FakeTxMockExecResults struct {
// contains filtered or unexported fields
}
FakeTxMockExecResults contains results of the FakeTx.Exec
type FakeTxMockLargeObjectsExpectation ¶
type FakeTxMockLargeObjectsExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockLargeObjectsExpectation specifies expectation struct of the FakeTx.LargeObjects
type FakeTxMockLargeObjectsResults ¶
type FakeTxMockLargeObjectsResults struct {
// contains filtered or unexported fields
}
FakeTxMockLargeObjectsResults contains results of the FakeTx.LargeObjects
type FakeTxMockPrepareExpectation ¶
type FakeTxMockPrepareExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockPrepareExpectation specifies expectation struct of the FakeTx.Prepare
func (*FakeTxMockPrepareExpectation) Then ¶
func (e *FakeTxMockPrepareExpectation) Then(sp1 *pgconn.StatementDescription, err error) *FakeTxMock
Then sets up FakeTx.Prepare return parameters for the expectation previously defined by the When method
type FakeTxMockPrepareParams ¶
type FakeTxMockPrepareParams struct {
// contains filtered or unexported fields
}
FakeTxMockPrepareParams contains parameters of the FakeTx.Prepare
type FakeTxMockPrepareResults ¶
type FakeTxMockPrepareResults struct {
// contains filtered or unexported fields
}
FakeTxMockPrepareResults contains results of the FakeTx.Prepare
type FakeTxMockQueryExpectation ¶
type FakeTxMockQueryExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockQueryExpectation specifies expectation struct of the FakeTx.Query
func (*FakeTxMockQueryExpectation) Then ¶
func (e *FakeTxMockQueryExpectation) Then(r1 pgx.Rows, err error) *FakeTxMock
Then sets up FakeTx.Query return parameters for the expectation previously defined by the When method
type FakeTxMockQueryFuncExpectation ¶
type FakeTxMockQueryFuncExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockQueryFuncExpectation specifies expectation struct of the FakeTx.QueryFunc
func (*FakeTxMockQueryFuncExpectation) Then ¶
func (e *FakeTxMockQueryFuncExpectation) Then(c2 pgconn.CommandTag, err error) *FakeTxMock
Then sets up FakeTx.QueryFunc return parameters for the expectation previously defined by the When method
type FakeTxMockQueryFuncParams ¶
type FakeTxMockQueryFuncParams struct {
// contains filtered or unexported fields
}
FakeTxMockQueryFuncParams contains parameters of the FakeTx.QueryFunc
type FakeTxMockQueryFuncResults ¶
type FakeTxMockQueryFuncResults struct {
// contains filtered or unexported fields
}
FakeTxMockQueryFuncResults contains results of the FakeTx.QueryFunc
type FakeTxMockQueryParams ¶
type FakeTxMockQueryParams struct {
// contains filtered or unexported fields
}
FakeTxMockQueryParams contains parameters of the FakeTx.Query
type FakeTxMockQueryResults ¶
type FakeTxMockQueryResults struct {
// contains filtered or unexported fields
}
FakeTxMockQueryResults contains results of the FakeTx.Query
type FakeTxMockQueryRowExpectation ¶
type FakeTxMockQueryRowExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockQueryRowExpectation specifies expectation struct of the FakeTx.QueryRow
func (*FakeTxMockQueryRowExpectation) Then ¶
func (e *FakeTxMockQueryRowExpectation) Then(r1 pgx.Row) *FakeTxMock
Then sets up FakeTx.QueryRow return parameters for the expectation previously defined by the When method
type FakeTxMockQueryRowParams ¶
type FakeTxMockQueryRowParams struct {
// contains filtered or unexported fields
}
FakeTxMockQueryRowParams contains parameters of the FakeTx.QueryRow
type FakeTxMockQueryRowResults ¶
type FakeTxMockQueryRowResults struct {
// contains filtered or unexported fields
}
FakeTxMockQueryRowResults contains results of the FakeTx.QueryRow
type FakeTxMockRollbackExpectation ¶
type FakeTxMockRollbackExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockRollbackExpectation specifies expectation struct of the FakeTx.Rollback
func (*FakeTxMockRollbackExpectation) Then ¶
func (e *FakeTxMockRollbackExpectation) Then(err error) *FakeTxMock
Then sets up FakeTx.Rollback return parameters for the expectation previously defined by the When method
type FakeTxMockRollbackParams ¶
type FakeTxMockRollbackParams struct {
// contains filtered or unexported fields
}
FakeTxMockRollbackParams contains parameters of the FakeTx.Rollback
type FakeTxMockRollbackResults ¶
type FakeTxMockRollbackResults struct {
// contains filtered or unexported fields
}
FakeTxMockRollbackResults contains results of the FakeTx.Rollback
type FakeTxMockSendBatchExpectation ¶
type FakeTxMockSendBatchExpectation struct { Counter uint64 // contains filtered or unexported fields }
FakeTxMockSendBatchExpectation specifies expectation struct of the FakeTx.SendBatch
func (*FakeTxMockSendBatchExpectation) Then ¶
func (e *FakeTxMockSendBatchExpectation) Then(b1 pgx.BatchResults) *FakeTxMock
Then sets up FakeTx.SendBatch return parameters for the expectation previously defined by the When method
type FakeTxMockSendBatchParams ¶
type FakeTxMockSendBatchParams struct {
// contains filtered or unexported fields
}
FakeTxMockSendBatchParams contains parameters of the FakeTx.SendBatch
type FakeTxMockSendBatchResults ¶
type FakeTxMockSendBatchResults struct {
// contains filtered or unexported fields
}
FakeTxMockSendBatchResults contains results of the FakeTx.SendBatch