repo

package
v0.0.0-...-bfcf95a Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPostgreser

type MockPostgreser struct {
	mock.Mock
}

MockPostgreser is an autogenerated mock type for the Postgreser type

func NewMockPostgreser

func NewMockPostgreser(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPostgreser

NewMockPostgreser creates a new instance of MockPostgreser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockPostgreser) Begin

func (_m *MockPostgreser) Begin(ctx context.Context) (pgx.Tx, error)

Begin provides a mock function with given fields: ctx

func (*MockPostgreser) CopyFrom

func (_m *MockPostgreser) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)

CopyFrom provides a mock function with given fields: ctx, tableName, columnNames, rowSrc

func (*MockPostgreser) EXPECT

func (*MockPostgreser) Exec

func (_m *MockPostgreser) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)

Exec provides a mock function with given fields: ctx, sql, arguments

func (*MockPostgreser) Query

func (_m *MockPostgreser) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)

Query provides a mock function with given fields: ctx, sql, args

type MockPostgreser_Begin_Call

type MockPostgreser_Begin_Call struct {
	*mock.Call
}

MockPostgreser_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'

func (*MockPostgreser_Begin_Call) Return

func (*MockPostgreser_Begin_Call) Run

func (*MockPostgreser_Begin_Call) RunAndReturn

type MockPostgreser_CopyFrom_Call

type MockPostgreser_CopyFrom_Call struct {
	*mock.Call
}

MockPostgreser_CopyFrom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CopyFrom'

func (*MockPostgreser_CopyFrom_Call) Return

func (*MockPostgreser_CopyFrom_Call) Run

func (_c *MockPostgreser_CopyFrom_Call) Run(run func(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource)) *MockPostgreser_CopyFrom_Call

func (*MockPostgreser_CopyFrom_Call) RunAndReturn

type MockPostgreser_Exec_Call

type MockPostgreser_Exec_Call struct {
	*mock.Call
}

MockPostgreser_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'

func (*MockPostgreser_Exec_Call) Return

func (*MockPostgreser_Exec_Call) Run

func (_c *MockPostgreser_Exec_Call) Run(run func(ctx context.Context, sql string, arguments ...interface{})) *MockPostgreser_Exec_Call

func (*MockPostgreser_Exec_Call) RunAndReturn

func (_c *MockPostgreser_Exec_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgconn.CommandTag, error)) *MockPostgreser_Exec_Call

type MockPostgreser_Expecter

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

func (*MockPostgreser_Expecter) Begin

func (_e *MockPostgreser_Expecter) Begin(ctx interface{}) *MockPostgreser_Begin_Call

Begin is a helper method to define mock.On call

  • ctx context.Context

func (*MockPostgreser_Expecter) CopyFrom

func (_e *MockPostgreser_Expecter) CopyFrom(ctx interface{}, tableName interface{}, columnNames interface{}, rowSrc interface{}) *MockPostgreser_CopyFrom_Call

CopyFrom is a helper method to define mock.On call

  • ctx context.Context
  • tableName pgx.Identifier
  • columnNames []string
  • rowSrc pgx.CopyFromSource

func (*MockPostgreser_Expecter) Exec

func (_e *MockPostgreser_Expecter) Exec(ctx interface{}, sql interface{}, arguments ...interface{}) *MockPostgreser_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • sql string
  • arguments ...interface{}

func (*MockPostgreser_Expecter) Query

func (_e *MockPostgreser_Expecter) Query(ctx interface{}, sql interface{}, args ...interface{}) *MockPostgreser_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • sql string
  • args ...interface{}

type MockPostgreser_Query_Call

type MockPostgreser_Query_Call struct {
	*mock.Call
}

MockPostgreser_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'

func (*MockPostgreser_Query_Call) Return

func (*MockPostgreser_Query_Call) Run

func (_c *MockPostgreser_Query_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockPostgreser_Query_Call

func (*MockPostgreser_Query_Call) RunAndReturn

func (_c *MockPostgreser_Query_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgx.Rows, error)) *MockPostgreser_Query_Call

Jump to

Keyboard shortcuts

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