mock_sqlc

package
v0.0.0-...-477091e Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_sqlc is a generated GoMock package.

Package mock_sqlc is a generated GoMock package.

Package mock_sqlc is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDBTX

type MockDBTX struct {
	// contains filtered or unexported fields
}

MockDBTX is a mock of DBTX interface.

func NewMockDBTX

func NewMockDBTX(ctrl *gomock.Controller) *MockDBTX

NewMockDBTX creates a new mock instance.

func (*MockDBTX) EXPECT

func (m *MockDBTX) EXPECT() *MockDBTXMockRecorder

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

func (*MockDBTX) Exec

func (m *MockDBTX) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgconn.CommandTag, error)

Exec mocks base method.

func (*MockDBTX) Query

func (m *MockDBTX) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)

Query mocks base method.

func (*MockDBTX) QueryRow

func (m *MockDBTX) QueryRow(arg0 context.Context, arg1 string, arg2 ...interface{}) pgx.Row

QueryRow mocks base method.

type MockDBTXMockRecorder

type MockDBTXMockRecorder struct {
	// contains filtered or unexported fields
}

MockDBTXMockRecorder is the mock recorder for MockDBTX.

func (*MockDBTXMockRecorder) Exec

func (mr *MockDBTXMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockDBTXMockRecorder) Query

func (mr *MockDBTXMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockDBTXMockRecorder) QueryRow

func (mr *MockDBTXMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

QueryRow indicates an expected call of QueryRow.

type MockQuerier

type MockQuerier struct {
	// contains filtered or unexported fields
}

MockQuerier is a mock of Querier interface.

func NewMockQuerier

func NewMockQuerier(ctrl *gomock.Controller) *MockQuerier

NewMockQuerier creates a new mock instance.

func (*MockQuerier) CreateUser

func (m *MockQuerier) CreateUser(ctx context.Context, arg sqlc.CreateUserParams) (sqlc.User, error)

CreateUser mocks base method.

func (*MockQuerier) DeleteUser

func (m *MockQuerier) DeleteUser(ctx context.Context, id int64) error

DeleteUser mocks base method.

func (*MockQuerier) EXPECT

func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder

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

func (*MockQuerier) GetUser

func (m *MockQuerier) GetUser(ctx context.Context, id int64) (sqlc.User, error)

GetUser mocks base method.

func (*MockQuerier) ListUsers

func (m *MockQuerier) ListUsers(ctx context.Context, arg sqlc.ListUsersParams) ([]sqlc.User, error)

ListUsers mocks base method.

func (*MockQuerier) UpdateUser

func (m *MockQuerier) UpdateUser(ctx context.Context, arg sqlc.UpdateUserParams) (sqlc.User, error)

UpdateUser mocks base method.

type MockQuerierMockRecorder

type MockQuerierMockRecorder struct {
	// contains filtered or unexported fields
}

MockQuerierMockRecorder is the mock recorder for MockQuerier.

func (*MockQuerierMockRecorder) CreateUser

func (mr *MockQuerierMockRecorder) CreateUser(ctx, arg interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockQuerierMockRecorder) DeleteUser

func (mr *MockQuerierMockRecorder) DeleteUser(ctx, id interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockQuerierMockRecorder) GetUser

func (mr *MockQuerierMockRecorder) GetUser(ctx, id interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockQuerierMockRecorder) ListUsers

func (mr *MockQuerierMockRecorder) ListUsers(ctx, arg interface{}) *gomock.Call

ListUsers indicates an expected call of ListUsers.

func (*MockQuerierMockRecorder) UpdateUser

func (mr *MockQuerierMockRecorder) UpdateUser(ctx, arg interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

Jump to

Keyboard shortcuts

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