graphstore

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package graphstore contains common utilities for testing GraphStore implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchWriteBenchmark

func BatchWriteBenchmark(b *testing.B, create CreateFunc, batchSize int)

BatchWriteBenchmark benchmarks the Write method of the given graphstore.Service. The number of updates per write is configured with batchSize.

func NullDestroy

func NullDestroy() error

NullDestroy does nothing.

func OrderTest

func OrderTest(t *testing.T, create CreateFunc, batchSize int)

OrderTest tests the ordering of the streamed entries while reading from the CreateFunc created graphstore.Service.

Types

type CreateFunc

type CreateFunc func() (Service, DestroyFunc, error)

CreateFunc creates a temporary graphstore.Service with a corresponding function to destroy it completely.

type DestroyFunc

type DestroyFunc func() error

DestroyFunc destroys its corresponding graphstore.Service returned from a CreateFunc.

type Service

type Service graphstore.Service

Service re-exports graphstore.Service for tests

Jump to

Keyboard shortcuts

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