testing

package
Version: v3.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package testing has the source tests. All source drivers must pass the Test function. This lives in it's own package so it stays a test dependency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test

func Test(t *testing.T, d source.Driver)

Test runs tests against source implementations. It assumes that the driver tests has access to the following migrations:

u = up migration, d = down migration, n = version

|  1  |  -  |  3  |  4  |  5  |  -  |  7  |
| u d |  -  | u   | u d |   d |  -  | u d |

See source/stub/stub_test.go or source/file/file_test.go for an example.

func TestFirst

func TestFirst(t *testing.T, d source.Driver)

func TestNext

func TestNext(t *testing.T, d source.Driver)

func TestPrev

func TestPrev(t *testing.T, d source.Driver)

func TestReadDown

func TestReadDown(t *testing.T, d source.Driver)

func TestReadUp

func TestReadUp(t *testing.T, d source.Driver)

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL