testing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

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

Package testing has the file tests. All file drivers must pass the Test function. This lives in its 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 file.Driver, migration []byte)

Test runs tests against file implementations.

func TestDrop

func TestDrop(t *testing.T, d file.Driver)

func TestLockAndUnlock

func TestLockAndUnlock(t *testing.T, d file.Driver)

func TestMigrate

func TestMigrate(t *testing.T, m *migrate.Migrate)

TestMigrate runs integration-tests between the Migrate layer and file implementations.

func TestMigrateDrop

func TestMigrateDrop(t *testing.T, m *migrate.Migrate)

TestMigrateDrop Regression test for preventing a regression for #164 https://github.com/c2pc/migrate/pull/173 Similar to TestDrop(), but tests the dropping mechanism through the Migrate logic instead, to check for double-locking during the Drop logic.

func TestMigrateUp

func TestMigrateUp(t *testing.T, m *migrate.Migrate)

func TestNilVersion

func TestNilVersion(t *testing.T, d file.Driver)

func TestRun

func TestRun(t *testing.T, d file.Driver, migration io.Reader)

func TestSetVersion

func TestSetVersion(t *testing.T, d file.Driver)

Types

This section is empty.

Jump to

Keyboard shortcuts

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