test_data

package
v0.0.0-...-9e51e25 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package test_data is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDatabase

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

MockDatabase is a mock of Database interface.

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance.

func (*MockDatabase) EXPECT

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

func (*MockDatabase) Exec

func (m *MockDatabase) Exec(arg0 string, arg1 ...interface{}) (sql.Result, error)

Exec mocks base method.

func (*MockDatabase) Query

func (m *MockDatabase) Query(arg0 string, arg1 ...interface{}) (*sql.Rows, error)

Query mocks base method.

func (*MockDatabase) QueryRowx

func (m *MockDatabase) QueryRowx(arg0 string, arg1 ...interface{}) *sqlx.Row

QueryRowx mocks base method.

func (*MockDatabase) Queryx

func (m *MockDatabase) Queryx(arg0 string, arg1 ...interface{}) (*sqlx.Rows, error)

Queryx mocks base method.

type MockDatabaseMockRecorder

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

MockDatabaseMockRecorder is the mock recorder for MockDatabase.

func (*MockDatabaseMockRecorder) Exec

func (mr *MockDatabaseMockRecorder) Exec(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockDatabaseMockRecorder) Query

func (mr *MockDatabaseMockRecorder) Query(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockDatabaseMockRecorder) QueryRowx

func (mr *MockDatabaseMockRecorder) QueryRowx(arg0 interface{}, arg1 ...interface{}) *gomock.Call

QueryRowx indicates an expected call of QueryRowx.

func (*MockDatabaseMockRecorder) Queryx

func (mr *MockDatabaseMockRecorder) Queryx(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Queryx indicates an expected call of Queryx.

type TestDTO

type TestDTO struct {
	Id    int64     `db:"id"`
	Value string    `db:"value"`
	Time  time.Time `db:"time"`
}

Jump to

Keyboard shortcuts

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