nosqltest

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkAll added in v0.7.1

func BenchmarkAll(t *testing.B, gen DatabaseFunc, conf *Config)

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
	IntToFloat bool // database always converts all int values to floats
	TimeInMs   bool
	Recreate   bool // tests should re-create database instance from scratch on each run
	PageSize   int  // result page size for pagination (large iterator) tests
}

type DatabaseFunc

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

Jump to

Keyboard shortcuts

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