graphtest

package
v0.0.0-...-8b501b0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SuiteBase

type SuiteBase struct {
	// contains filtered or unexported fields
}

SuiteBase defines a re-usable set of graph-related tests that can be executed against any type that implements graph.Graph.

func (*SuiteBase) SetGraph

func (s *SuiteBase) SetGraph(g graph.Graph)

SetGraph configures the test-suite to run all tests against g.

func (*SuiteBase) TestConcurrentEdgeIterators

func (s *SuiteBase) TestConcurrentEdgeIterators(c *gc.C)

TestConcurrentEdgeIterators verifies that multiple clients can concurrently access the store.

func (*SuiteBase) TestConcurrentLinkIterators

func (s *SuiteBase) TestConcurrentLinkIterators(c *gc.C)

TestConcurrentLinkIterators verifies that multiple clients can concurrently access the store.

func (*SuiteBase) TestEdgeIteratorTimeFilter

func (s *SuiteBase) TestEdgeIteratorTimeFilter(c *gc.C)

TestEdgeIteratorTimeFilter verifies that the time-based filtering of the edge iterator works as expected.

func (s *SuiteBase) TestFindLink(c *gc.C)

TestFindLink verifies the link lookup logic.

func (*SuiteBase) TestLinkIteratorTimeFilter

func (s *SuiteBase) TestLinkIteratorTimeFilter(c *gc.C)

TestLinkIteratorTimeFilter verifies that the time-based filtering of the link iterator works as expected.

func (*SuiteBase) TestPartitionedEdgeIterators

func (s *SuiteBase) TestPartitionedEdgeIterators(c *gc.C)

TestPartitionedEdgeIterators verifies that the graph partitioning logic works as expected even when partitions contain an uneven number of items.

func (*SuiteBase) TestPartitionedLinkIterators

func (s *SuiteBase) TestPartitionedLinkIterators(c *gc.C)

TestPartitionedLinkIterators verifies that the graph partitioning logic works as expected even when partitions contain an uneven number of items.

func (*SuiteBase) TestRemoveStaleEdges

func (s *SuiteBase) TestRemoveStaleEdges(c *gc.C)

TestRemoveStaleEdges verifies that the edge deletion logic works as expected.

func (*SuiteBase) TestUpsertEdge

func (s *SuiteBase) TestUpsertEdge(c *gc.C)

TestUpsertEdge verifies the edge upsert logic.

func (s *SuiteBase) TestUpsertLink(c *gc.C)

TestUpsertLink verifies the link upsert logic.

Jump to

Keyboard shortcuts

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