mocks

package
v1.67.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDatabase

type MockDatabase struct {
	mock.Mock
}

MockDatabase is an autogenerated mock type for the Database type

func NewMockDatabase

func NewMockDatabase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDatabase

NewMockDatabase creates a new instance of MockDatabase. 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 (*MockDatabase) BatchInsert

func (_m *MockDatabase) BatchInsert(ctx context.Context, data []map[string]interface{}, sql string) error

BatchInsert provides a mock function with given fields: ctx, data, sql

func (*MockDatabase) Close

func (_m *MockDatabase) Close() error

Close provides a mock function with no fields

func (*MockDatabase) CreateSchema

func (_m *MockDatabase) CreateSchema(ctx context.Context, schema string) error

CreateSchema provides a mock function with given fields: ctx, schema

func (*MockDatabase) CreateTable

func (_m *MockDatabase) CreateTable(ctx context.Context, sql string) error

CreateTable provides a mock function with given fields: ctx, sql

func (*MockDatabase) InitDatabaseConn

func (_m *MockDatabase) InitDatabaseConn(ctx context.Context, roles string) error

InitDatabaseConn provides a mock function with given fields: ctx, roles

Jump to

Keyboard shortcuts

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