nosqltest

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuadStore

func NewQuadStore(t testing.TB, gen DatabaseFunc) (graph.QuadStore, graph.Options, func())

func TestAll

func TestAll(t *testing.T, gen DatabaseFunc, conf *Config)

func TestNoSQL

func TestNoSQL(t *testing.T, gen DatabaseFunc, conf *Config)

Types

type Config

type Config struct {
	FloatToInt bool // database silently converts all float values to ints, if possible
	TimeInMs   bool
	Recreate   bool // tests should re-create database instance from scratch on each run
}

type DatabaseFunc

type DatabaseFunc func(t testing.TB) (nosql.Database, graph.Options, func())

Jump to

Keyboard shortcuts

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