Documentation ¶
Index ¶
- 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 IteratedRawStrings(t testing.TB, qs graph.QuadStore, it graph.Iterator) []string
- func IteratedValues(t testing.TB, qs graph.QuadStore, it graph.Iterator) []quad.Value
- func LoadGraph(t testing.TB, path string) []quad.Quad
- func MakeQuadSet() []quad.Quad
- func MakeWriter(t testing.TB, qs graph.QuadStore, opts graph.Options, data ...quad.Quad) graph.QuadWriter
- func TestAddRemove(t testing.TB, gen DatabaseFunc, conf *Config)
- func TestAll(t testing.TB, gen DatabaseFunc, conf *Config)
- func TestCompareTypedValues(t testing.TB, gen DatabaseFunc, conf *Config)
- func TestDeleteQuad(t testing.TB, gen DatabaseFunc)
- func TestDeletedFromIterator(t testing.TB, gen DatabaseFunc)
- func TestHasA(t testing.TB, gen DatabaseFunc, conf *Config)
- func TestHorizonInt(t testing.TB, gen DatabaseFunc, conf *Config)
- func TestIterator(t testing.TB, gen DatabaseFunc)
- func TestIteratorsAndNextResultOrderA(t testing.TB, gen DatabaseFunc)
- func TestLoadOneQuad(t testing.TB, gen DatabaseFunc)
- func TestLoadTypedQuads(t testing.TB, gen DatabaseFunc, conf *Config)
- func TestSetIterator(t testing.TB, gen DatabaseFunc)
- type Config
- type DatabaseFunc
- type ValueSizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpectIteratedQuads ¶
func ExpectIteratedValues ¶
func IteratedQuads ¶
func IteratedRawStrings ¶
func IteratedValues ¶
func MakeQuadSet ¶
This is a simple test graph.
+---+ +---+ | A |------- ->| F |<-- +---+ \------>+---+-/ +---+ \--+---+ ------>|#B#| | | E | +---+-------/ >+---+ | +---+ | C | / v +---+ -/ +---+ ---- +---+/ |#G#| \-->|#D#|------------->+---+ +---+
func MakeWriter ¶
func TestAddRemove ¶
func TestAddRemove(t testing.TB, gen 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 DatabaseFunc, conf *Config)
func TestDeleteQuad ¶
func TestDeleteQuad(t testing.TB, gen DatabaseFunc)
func TestDeletedFromIterator ¶
func TestDeletedFromIterator(t testing.TB, gen DatabaseFunc)
func TestHorizonInt ¶
func TestHorizonInt(t testing.TB, gen DatabaseFunc, conf *Config)
func TestIterator ¶
func TestIterator(t testing.TB, gen DatabaseFunc)
func TestIteratorsAndNextResultOrderA ¶
func TestIteratorsAndNextResultOrderA(t testing.TB, gen DatabaseFunc)
func TestLoadOneQuad ¶
func TestLoadOneQuad(t testing.TB, gen DatabaseFunc)
func TestLoadTypedQuads ¶
func TestLoadTypedQuads(t testing.TB, gen DatabaseFunc, conf *Config)
func TestSetIterator ¶
func TestSetIterator(t testing.TB, gen DatabaseFunc)
Types ¶
type Config ¶
type Config struct { UnTyped bool // converts all values to Raw representation NoHashes bool // cannot exchange raw values into typed ones TimeInMs bool TimeInMcs bool TimeRound bool OptimizesComparison bool // TODO(dennwc): some stores return duplicates entries for HasA, some optimizes them to be unique OptimizesHasAToUnique bool SkipDeletedFromIterator bool SkipSizeCheckAfterDelete bool SkipIntHorizon bool // TODO(dennwc): these stores are not garbage-collecting nodes after quad removal SkipNodeDelAfterQuadDel bool }
type ValueSizer ¶
Click to show internal directories.
Click to hide internal directories.