testutil

package
v0.0.0-...-02c3ccb Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package testutil contains test supporting functionality for 'impl/sql/...'.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeFactory

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

FakeFactory is a fake transaction factory

func NewFakeFactory

func NewFakeFactory(db *sql.DB) *FakeFactory

NewFakeFactory creates a new FakeFactory instance.

func (*FakeFactory) NewTxn

func (f *FakeFactory) NewTxn(ctx context.Context) (transaction.Txn, error)

NewTxn creates a new database transaction.

Jump to

Keyboard shortcuts

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