mocks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLXMock

type SQLXMock struct {
	Mock sqlmock.Sqlmock
	// contains filtered or unexported fields
}

func NewSQLXMock

func NewSQLXMock() (*SQLXMock, error)

func (*SQLXMock) CallContext

func (s *SQLXMock) CallContext(
	ctx context.Context,
	_ string,
	callFunc func(ctx context.Context, db *sqlx.DB) error,
) error

func (*SQLXMock) CallTransaction

func (s *SQLXMock) CallTransaction(
	ctx context.Context,
	_ string,
	callFunc func(ctx context.Context, tx *sqlx.Tx) error,
) error

func (*SQLXMock) CloseDB

func (s *SQLXMock) CloseDB() error

Jump to

Keyboard shortcuts

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