mock_adapter

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	mock.Mock
}

Postgres is an autogenerated mock type for the Postgres type

func NewPostgres

func NewPostgres(t mockConstructorTestingTNewPostgres) *Postgres

NewPostgres creates a new instance of Postgres. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Postgres) Config

func (_m *Postgres) Config() interface{}

Config provides a mock function with given fields:

func (*Postgres) Connect

func (_m *Postgres) Connect(ctx context.Context, uri string) (interface{}, error)

Connect provides a mock function with given fields: ctx, uri

Jump to

Keyboard shortcuts

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