testhelper

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMock = errors.New("mock error")

Functions

func OpenMockDB

func OpenMockDB(lastErr bool) *sql.DB

func QueryRows

func QueryRows(mock *sql.DB) *sql.Rows

Types

type TestRow

type TestRow struct {
	Id    int
	Title string
	Body  string
}

func Scan

func Scan(r *sql.Rows) (TestRow, error)

Jump to

Keyboard shortcuts

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