Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) BeginTx(ctx context.Context) (mysql.Transaction, error)
- func (m *MockClient) Close() error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) ExecContext(ctx context.Context, query string, args ...any) (mysql.Result, error)
- func (m *MockClient) QueryContext(ctx context.Context, query string, args ...any) (mysql.Rows, error)
- func (m *MockClient) QueryRowContext(ctx context.Context, query string, args ...any) mysql.Row
- func (m *MockClient) RunInTransaction(ctx context.Context, tx mysql.Transaction, f func() error) error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) BeginTx(ctx any) *gomock.Call
- func (mr *MockClientMockRecorder) Close() *gomock.Call
- func (mr *MockClientMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockClientMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockClientMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockClientMockRecorder) RunInTransaction(ctx, tx, f any) *gomock.Call
- type MockExecer
- type MockExecerMockRecorder
- type MockQueryExecer
- func (m *MockQueryExecer) EXPECT() *MockQueryExecerMockRecorder
- func (m *MockQueryExecer) ExecContext(ctx context.Context, query string, args ...any) (mysql.Result, error)
- func (m *MockQueryExecer) QueryContext(ctx context.Context, query string, args ...any) (mysql.Rows, error)
- func (m *MockQueryExecer) QueryRowContext(ctx context.Context, query string, args ...any) mysql.Row
- type MockQueryExecerMockRecorder
- type MockQueryer
- type MockQueryerMockRecorder
- type MockResult
- type MockResultMockRecorder
- type MockRow
- type MockRowMockRecorder
- type MockRows
- type MockRowsMockRecorder
- type MockTransaction
- func (m *MockTransaction) Commit() error
- func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
- func (m *MockTransaction) ExecContext(ctx context.Context, query string, args ...any) (mysql.Result, error)
- func (m *MockTransaction) QueryContext(ctx context.Context, query string, args ...any) (mysql.Rows, error)
- func (m *MockTransaction) QueryRowContext(ctx context.Context, query string, args ...any) mysql.Row
- func (m *MockTransaction) Rollback() error
- type MockTransactionMockRecorder
- func (mr *MockTransactionMockRecorder) Commit() *gomock.Call
- func (mr *MockTransactionMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockTransactionMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockTransactionMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockTransactionMockRecorder) Rollback() *gomock.Call
- type MockWherePart
- type MockWherePartMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) BeginTx ¶
func (m *MockClient) BeginTx(ctx context.Context) (mysql.Transaction, error)
BeginTx mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) ExecContext ¶
func (m *MockClient) ExecContext(ctx context.Context, query string, args ...any) (mysql.Result, error)
ExecContext mocks base method.
func (*MockClient) QueryContext ¶
func (m *MockClient) QueryContext(ctx context.Context, query string, args ...any) (mysql.Rows, error)
QueryContext mocks base method.
func (*MockClient) QueryRowContext ¶
QueryRowContext mocks base method.
func (*MockClient) RunInTransaction ¶
func (m *MockClient) RunInTransaction(ctx context.Context, tx mysql.Transaction, f func() error) error
RunInTransaction mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) BeginTx ¶
func (mr *MockClientMockRecorder) BeginTx(ctx any) *gomock.Call
BeginTx indicates an expected call of BeginTx.
func (*MockClientMockRecorder) Close ¶
func (mr *MockClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockClientMockRecorder) ExecContext ¶
func (mr *MockClientMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
ExecContext indicates an expected call of ExecContext.
func (*MockClientMockRecorder) QueryContext ¶
func (mr *MockClientMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call
QueryContext indicates an expected call of QueryContext.
func (*MockClientMockRecorder) QueryRowContext ¶
func (mr *MockClientMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
QueryRowContext indicates an expected call of QueryRowContext.
func (*MockClientMockRecorder) RunInTransaction ¶
func (mr *MockClientMockRecorder) RunInTransaction(ctx, tx, f any) *gomock.Call
RunInTransaction indicates an expected call of RunInTransaction.
type MockExecer ¶
type MockExecer struct {
// contains filtered or unexported fields
}
MockExecer is a mock of Execer interface.
func NewMockExecer ¶
func NewMockExecer(ctrl *gomock.Controller) *MockExecer
NewMockExecer creates a new mock instance.
func (*MockExecer) EXPECT ¶
func (m *MockExecer) EXPECT() *MockExecerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecer) ExecContext ¶
func (m *MockExecer) ExecContext(ctx context.Context, query string, args ...any) (mysql.Result, error)
ExecContext mocks base method.
type MockExecerMockRecorder ¶
type MockExecerMockRecorder struct {
// contains filtered or unexported fields
}
MockExecerMockRecorder is the mock recorder for MockExecer.
func (*MockExecerMockRecorder) ExecContext ¶
func (mr *MockExecerMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
ExecContext indicates an expected call of ExecContext.
type MockQueryExecer ¶
type MockQueryExecer struct {
// contains filtered or unexported fields
}
MockQueryExecer is a mock of QueryExecer interface.
func NewMockQueryExecer ¶
func NewMockQueryExecer(ctrl *gomock.Controller) *MockQueryExecer
NewMockQueryExecer creates a new mock instance.
func (*MockQueryExecer) EXPECT ¶
func (m *MockQueryExecer) EXPECT() *MockQueryExecerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQueryExecer) ExecContext ¶
func (m *MockQueryExecer) ExecContext(ctx context.Context, query string, args ...any) (mysql.Result, error)
ExecContext mocks base method.
func (*MockQueryExecer) QueryContext ¶
func (m *MockQueryExecer) QueryContext(ctx context.Context, query string, args ...any) (mysql.Rows, error)
QueryContext mocks base method.
func (*MockQueryExecer) QueryRowContext ¶
QueryRowContext mocks base method.
type MockQueryExecerMockRecorder ¶
type MockQueryExecerMockRecorder struct {
// contains filtered or unexported fields
}
MockQueryExecerMockRecorder is the mock recorder for MockQueryExecer.
func (*MockQueryExecerMockRecorder) ExecContext ¶
func (mr *MockQueryExecerMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
ExecContext indicates an expected call of ExecContext.
func (*MockQueryExecerMockRecorder) QueryContext ¶
func (mr *MockQueryExecerMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call
QueryContext indicates an expected call of QueryContext.
func (*MockQueryExecerMockRecorder) QueryRowContext ¶
func (mr *MockQueryExecerMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
QueryRowContext indicates an expected call of QueryRowContext.
type MockQueryer ¶
type MockQueryer struct {
// contains filtered or unexported fields
}
MockQueryer is a mock of Queryer interface.
func NewMockQueryer ¶
func NewMockQueryer(ctrl *gomock.Controller) *MockQueryer
NewMockQueryer creates a new mock instance.
func (*MockQueryer) EXPECT ¶
func (m *MockQueryer) EXPECT() *MockQueryerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQueryer) QueryContext ¶
func (m *MockQueryer) QueryContext(ctx context.Context, query string, args ...any) (mysql.Rows, error)
QueryContext mocks base method.
func (*MockQueryer) QueryRowContext ¶
QueryRowContext mocks base method.
type MockQueryerMockRecorder ¶
type MockQueryerMockRecorder struct {
// contains filtered or unexported fields
}
MockQueryerMockRecorder is the mock recorder for MockQueryer.
func (*MockQueryerMockRecorder) QueryContext ¶
func (mr *MockQueryerMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call
QueryContext indicates an expected call of QueryContext.
func (*MockQueryerMockRecorder) QueryRowContext ¶
func (mr *MockQueryerMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
QueryRowContext indicates an expected call of QueryRowContext.
type MockResult ¶
type MockResult struct {
// contains filtered or unexported fields
}
MockResult is a mock of Result interface.
func NewMockResult ¶
func NewMockResult(ctrl *gomock.Controller) *MockResult
NewMockResult creates a new mock instance.
func (*MockResult) EXPECT ¶
func (m *MockResult) EXPECT() *MockResultMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResult) LastInsertId ¶
func (m *MockResult) LastInsertId() (int64, error)
LastInsertId mocks base method.
func (*MockResult) RowsAffected ¶
func (m *MockResult) RowsAffected() (int64, error)
RowsAffected mocks base method.
type MockResultMockRecorder ¶
type MockResultMockRecorder struct {
// contains filtered or unexported fields
}
MockResultMockRecorder is the mock recorder for MockResult.
func (*MockResultMockRecorder) LastInsertId ¶
func (mr *MockResultMockRecorder) LastInsertId() *gomock.Call
LastInsertId indicates an expected call of LastInsertId.
func (*MockResultMockRecorder) RowsAffected ¶
func (mr *MockResultMockRecorder) RowsAffected() *gomock.Call
RowsAffected indicates an expected call of RowsAffected.
type MockRow ¶
type MockRow struct {
// contains filtered or unexported fields
}
MockRow is a mock of Row interface.
func NewMockRow ¶
func NewMockRow(ctrl *gomock.Controller) *MockRow
NewMockRow creates a new mock instance.
func (*MockRow) EXPECT ¶
func (m *MockRow) EXPECT() *MockRowMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRowMockRecorder ¶
type MockRowMockRecorder struct {
// contains filtered or unexported fields
}
MockRowMockRecorder is the mock recorder for MockRow.
func (*MockRowMockRecorder) Err ¶
func (mr *MockRowMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
type MockRows ¶
type MockRows struct {
// contains filtered or unexported fields
}
MockRows is a mock of Rows interface.
func NewMockRows ¶
func NewMockRows(ctrl *gomock.Controller) *MockRows
NewMockRows creates a new mock instance.
func (*MockRows) EXPECT ¶
func (m *MockRows) EXPECT() *MockRowsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRowsMockRecorder ¶
type MockRowsMockRecorder struct {
// contains filtered or unexported fields
}
MockRowsMockRecorder is the mock recorder for MockRows.
func (*MockRowsMockRecorder) Close ¶
func (mr *MockRowsMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRowsMockRecorder) Err ¶
func (mr *MockRowsMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockRowsMockRecorder) Next ¶
func (mr *MockRowsMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
type MockTransaction ¶
type MockTransaction struct {
// contains filtered or unexported fields
}
MockTransaction is a mock of Transaction interface.
func NewMockTransaction ¶
func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction
NewMockTransaction creates a new mock instance.
func (*MockTransaction) EXPECT ¶
func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTransaction) ExecContext ¶
func (m *MockTransaction) ExecContext(ctx context.Context, query string, args ...any) (mysql.Result, error)
ExecContext mocks base method.
func (*MockTransaction) QueryContext ¶
func (m *MockTransaction) QueryContext(ctx context.Context, query string, args ...any) (mysql.Rows, error)
QueryContext mocks base method.
func (*MockTransaction) QueryRowContext ¶
QueryRowContext mocks base method.
func (*MockTransaction) Rollback ¶
func (m *MockTransaction) Rollback() error
Rollback mocks base method.
type MockTransactionMockRecorder ¶
type MockTransactionMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionMockRecorder is the mock recorder for MockTransaction.
func (*MockTransactionMockRecorder) Commit ¶
func (mr *MockTransactionMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockTransactionMockRecorder) ExecContext ¶
func (mr *MockTransactionMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
ExecContext indicates an expected call of ExecContext.
func (*MockTransactionMockRecorder) QueryContext ¶
func (mr *MockTransactionMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call
QueryContext indicates an expected call of QueryContext.
func (*MockTransactionMockRecorder) QueryRowContext ¶
func (mr *MockTransactionMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call
QueryRowContext indicates an expected call of QueryRowContext.
func (*MockTransactionMockRecorder) Rollback ¶
func (mr *MockTransactionMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback.
type MockWherePart ¶
type MockWherePart struct {
// contains filtered or unexported fields
}
MockWherePart is a mock of WherePart interface.
func NewMockWherePart ¶
func NewMockWherePart(ctrl *gomock.Controller) *MockWherePart
NewMockWherePart creates a new mock instance.
func (*MockWherePart) EXPECT ¶
func (m *MockWherePart) EXPECT() *MockWherePartMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWherePart) SQLString ¶
func (m *MockWherePart) SQLString() (string, []any)
SQLString mocks base method.
type MockWherePartMockRecorder ¶
type MockWherePartMockRecorder struct {
// contains filtered or unexported fields
}
MockWherePartMockRecorder is the mock recorder for MockWherePart.
func (*MockWherePartMockRecorder) SQLString ¶
func (mr *MockWherePartMockRecorder) SQLString() *gomock.Call
SQLString indicates an expected call of SQLString.