nosqltest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Benchmark

func Benchmark(b *testing.B, names ...string)

func BenchmarkNoSQL

func BenchmarkNoSQL(t *testing.B, gen Database)

func Register

func Register(name string, vers ...Version)

Register globally registers a database driver.

func RunBenchmark

func RunBenchmark(b *testing.B, bench func(b *testing.B, run Database), names ...string)

func RunTest

func RunTest(t *testing.T, test func(t *testing.T, run Database), names ...string)

func Test

func Test(t *testing.T, names ...string)

func TestNoSQL

func TestNoSQL(t *testing.T, gen Database)

Types

type Database

type Database struct {
	Traits nosql.Traits
	Run    func(t testing.TB) nosql.Database
}

type Registration

type Registration struct {
	nosql.Registration
	Versions []Version
}

func ByName

func ByName(name string) *Registration

ByName returns a registered database driver by it's name.

func List

func List() []Registration

List enumerates all globally registered database drivers.

type Version

type Version struct {
	Name    string
	Factory Database
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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