Documentation ¶
Index ¶
- Constants
- func BenchmarkAll(t *testing.B, gen testutil.DatabaseFunc, conf *Config)
- func BenchmarkIntegration(t *testing.B, gen testutil.DatabaseFunc, force bool)
- func ExpectIteratedQuads(t testing.TB, qs graph.QuadStore, it graph.Iterator, exp []quad.Quad, ...)
- func ExpectIteratedRawStrings(t testing.TB, qs graph.QuadStore, it graph.Iterator, exp []string)
- func ExpectIteratedValues(t testing.TB, qs graph.QuadStore, it graph.Iterator, exp []quad.Value, ...)
- func IteratedQuads(t testing.TB, qs graph.QuadStore, it graph.Iterator) []quad.Quad
- func IteratedStrings(t testing.TB, qs graph.QuadStore, it graph.Iterator) []string
- func IteratedValues(t testing.TB, qs graph.QuadStore, it graph.Iterator) []quad.Value
- func MakeQuadSet() []quad.Quad
- func Test1K(t *testing.T, gen testutil.DatabaseFunc, c *Config)
- func TestAddRemove(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
- func TestAll(t *testing.T, gen testutil.DatabaseFunc, conf *Config)
- func TestCompareTypedValues(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
- func TestDeleteQuad(t testing.TB, gen testutil.DatabaseFunc, _ *Config)
- func TestDeleteReinserted(t testing.TB, gen testutil.DatabaseFunc, _ *Config)
- func TestDeletedFromIterator(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
- func TestHasA(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
- func TestIntegration(t *testing.T, gen testutil.DatabaseFunc, force bool)
- func TestIterator(t testing.TB, gen testutil.DatabaseFunc, _ *Config)
- func TestIteratorsAndNextResultOrderA(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
- func TestLoadDup(t testing.TB, gen testutil.DatabaseFunc, c *Config)
- func TestLoadDupRaw(t testing.TB, gen testutil.DatabaseFunc, c *Config)
- func TestLoadDupSingle(t testing.TB, gen testutil.DatabaseFunc, c *Config)
- func TestLoadOneQuad(t testing.TB, gen testutil.DatabaseFunc, c *Config)
- func TestLoadTypedQuads(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
- func TestNodeDelete(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
- func TestSchema(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
- func TestSetIterator(t testing.TB, gen testutil.DatabaseFunc, _ *Config)
- func TestSizes(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
- func TestWriters(t *testing.T, gen testutil.DatabaseFunc, c *Config)
- type Config
- type ValueSizer
Constants ¶
View Source
const ( SandraB = "Sandra Bullock" KeanuR = "Keanu Reeves" )
Variables ¶
This section is empty.
Functions ¶
func BenchmarkAll ¶
func BenchmarkAll(t *testing.B, gen testutil.DatabaseFunc, conf *Config)
func BenchmarkIntegration ¶
func BenchmarkIntegration(t *testing.B, gen testutil.DatabaseFunc, force bool)
func ExpectIteratedQuads ¶
func ExpectIteratedValues ¶
func IteratedQuads ¶
func IteratedStrings ¶
func IteratedValues ¶
func MakeQuadSet ¶
This is a simple test graph.
+---+ +---+ | A |------- ->| F |<-- +---+ \------>+---+-/ +---+ \--+---+ ------>|#B#| | | E | +---+-------/ >+---+ | +---+ | C | / v +---+ -/ +---+ ---- +---+/ |#G#| \-->|#D#|------------->+---+ +---+
func TestAddRemove ¶
func TestAddRemove(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
TODO(dennwc): add tests to verify that QS behaves in a right way with IgnoreOptions, returns ErrQuadExists, ErrQuadNotExists is doing rollback.
func TestCompareTypedValues ¶
func TestCompareTypedValues(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
func TestDeleteQuad ¶
func TestDeleteQuad(t testing.TB, gen testutil.DatabaseFunc, _ *Config)
func TestDeleteReinserted ¶
func TestDeleteReinserted(t testing.TB, gen testutil.DatabaseFunc, _ *Config)
func TestDeletedFromIterator ¶
func TestDeletedFromIterator(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
func TestIntegration ¶
func TestIntegration(t *testing.T, gen testutil.DatabaseFunc, force bool)
func TestIterator ¶
func TestIterator(t testing.TB, gen testutil.DatabaseFunc, _ *Config)
func TestIteratorsAndNextResultOrderA ¶
func TestIteratorsAndNextResultOrderA(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
func TestLoadDup ¶
func TestLoadDup(t testing.TB, gen testutil.DatabaseFunc, c *Config)
func TestLoadDupRaw ¶
func TestLoadDupRaw(t testing.TB, gen testutil.DatabaseFunc, c *Config)
func TestLoadDupSingle ¶
func TestLoadDupSingle(t testing.TB, gen testutil.DatabaseFunc, c *Config)
func TestLoadOneQuad ¶
func TestLoadOneQuad(t testing.TB, gen testutil.DatabaseFunc, c *Config)
func TestLoadTypedQuads ¶
func TestLoadTypedQuads(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
func TestNodeDelete ¶
func TestNodeDelete(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
func TestSchema ¶
func TestSchema(t testing.TB, gen testutil.DatabaseFunc, conf *Config)
func TestSetIterator ¶
func TestSetIterator(t testing.TB, gen testutil.DatabaseFunc, _ *Config)
func TestWriters ¶
func TestWriters(t *testing.T, gen testutil.DatabaseFunc, c *Config)
Types ¶
type Config ¶
type Config struct { NoPrimitives bool UnTyped bool // converts all values to Raw representation TimeInMs bool TimeInMcs bool TimeRound bool PageSize int // result page size for pagination (large iterator) tests OptimizesComparison bool AlwaysRunIntegration bool // always run integration tests SkipDeletedFromIterator bool SkipSizeCheckAfterDelete bool }
type ValueSizer ¶
Click to show internal directories.
Click to hide internal directories.