testing

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDB

type MockDB struct{}

MockDB is a mock of *sql.DB

func (*MockDB) Close

func (db *MockDB) Close() error

Close closes the DB connection

func (*MockDB) Ping

func (db *MockDB) Ping() error

Ping pings the DB

func (*MockDB) Query

func (db *MockDB) Query(query string, args ...interface{}) (*sql.Rows, error)

Query sends a query to the DB

Jump to

Keyboard shortcuts

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