mocks

package
v0.0.0-...-1d59f67 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAccountsApi

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

MockAccountsApi is a mock of AccountsApi interface.

func NewMockAccountsApi

func NewMockAccountsApi(ctrl *gomock.Controller) *MockAccountsApi

NewMockAccountsApi creates a new mock instance.

func (*MockAccountsApi) CreateAccount

func (m *MockAccountsApi) CreateAccount(email string) (uuid.UUID, error)

CreateAccount mocks base method.

func (*MockAccountsApi) CreateUser

func (m *MockAccountsApi) CreateUser(input api.UserCreateInput) (uuid.UUID, error)

CreateUser mocks base method.

func (*MockAccountsApi) EXPECT

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

func (*MockAccountsApi) GetUserByEmail

func (m *MockAccountsApi) GetUserByEmail(email string) (*api.Account, error)

GetUserByEmail mocks base method.

func (*MockAccountsApi) GetUserById

func (m *MockAccountsApi) GetUserById(id uuid.UUID) (*api.Account, error)

GetUserById mocks base method.

type MockAccountsApiMockRecorder

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

MockAccountsApiMockRecorder is the mock recorder for MockAccountsApi.

func (*MockAccountsApiMockRecorder) CreateAccount

func (mr *MockAccountsApiMockRecorder) CreateAccount(email any) *gomock.Call

CreateAccount indicates an expected call of CreateAccount.

func (*MockAccountsApiMockRecorder) CreateUser

func (mr *MockAccountsApiMockRecorder) CreateUser(input any) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockAccountsApiMockRecorder) GetUserByEmail

func (mr *MockAccountsApiMockRecorder) GetUserByEmail(email any) *gomock.Call

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockAccountsApiMockRecorder) GetUserById

func (mr *MockAccountsApiMockRecorder) GetUserById(id any) *gomock.Call

GetUserById indicates an expected call of GetUserById.

type MockPool

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

MockPool is a mock of Pool interface.

func NewMockPool

func NewMockPool(ctrl *gomock.Controller) *MockPool

NewMockPool creates a new mock instance.

func (*MockPool) AcquireFunc

func (m *MockPool) AcquireFunc(ctx context.Context, fn func(*pgxpool.Conn) error) error

AcquireFunc mocks base method.

func (*MockPool) BeginTxFunc

func (m *MockPool) BeginTxFunc(ctx context.Context, txOptions pgx.TxOptions, fn func(pgx.Tx) error) error

BeginTxFunc mocks base method.

func (*MockPool) EXPECT

func (m *MockPool) EXPECT() *MockPoolMockRecorder

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

type MockPoolMockRecorder

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

MockPoolMockRecorder is the mock recorder for MockPool.

func (*MockPoolMockRecorder) AcquireFunc

func (mr *MockPoolMockRecorder) AcquireFunc(ctx, fn any) *gomock.Call

AcquireFunc indicates an expected call of AcquireFunc.

func (*MockPoolMockRecorder) BeginTxFunc

func (mr *MockPoolMockRecorder) BeginTxFunc(ctx, txOptions, fn any) *gomock.Call

BeginTxFunc indicates an expected call of BeginTxFunc.

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

func (m *MockQuerier) ConfigsGet(ctx context.Context, slugs string) ([][]byte, error)

ConfigsGet mocks base method.

func (*MockQuerier) CreateAccount

func (m *MockQuerier) CreateAccount(ctx context.Context, email string) (uuid.UUID, error)

CreateAccount mocks base method.

func (*MockQuerier) CreatePerson

func (m *MockQuerier) CreatePerson(ctx context.Context, arg dbc.CreatePersonParams) (uuid.UUID, error)

CreatePerson 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) GetAccountsByEmail

func (m *MockQuerier) GetAccountsByEmail(ctx context.Context, emails []string) ([]*dbc.GetAccountsByEmailRow, error)

GetAccountsByEmail mocks base method.

func (*MockQuerier) SaveConfig

func (m *MockQuerier) SaveConfig(ctx context.Context, arg dbc.SaveConfigParams) error

SaveConfig mocks base method.

type MockQuerierMockRecorder

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

MockQuerierMockRecorder is the mock recorder for MockQuerier.

func (*MockQuerierMockRecorder) ConfigsGet

func (mr *MockQuerierMockRecorder) ConfigsGet(ctx, slugs any) *gomock.Call

ConfigsGet indicates an expected call of ConfigsGet.

func (*MockQuerierMockRecorder) CreateAccount

func (mr *MockQuerierMockRecorder) CreateAccount(ctx, email any) *gomock.Call

CreateAccount indicates an expected call of CreateAccount.

func (*MockQuerierMockRecorder) CreatePerson

func (mr *MockQuerierMockRecorder) CreatePerson(ctx, arg any) *gomock.Call

CreatePerson indicates an expected call of CreatePerson.

func (*MockQuerierMockRecorder) GetAccountsByEmail

func (mr *MockQuerierMockRecorder) GetAccountsByEmail(ctx, emails any) *gomock.Call

GetAccountsByEmail indicates an expected call of GetAccountsByEmail.

func (*MockQuerierMockRecorder) SaveConfig

func (mr *MockQuerierMockRecorder) SaveConfig(ctx, arg any) *gomock.Call

SaveConfig indicates an expected call of SaveConfig.

Jump to

Keyboard shortcuts

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