testing

package
v0.0.0-...-0ace8a3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package testing provides utilities for testing implementations of Store

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandTest

func RandTest(t *testing.T, newStore func() storage.Store)

RandTest is a randomized black-box test for store implementations. It does the following:

* Insert random values into the logs * Verify that reading back those values succeeds * Clear the logs and verify that they are actually empty.

If any of the checks are unsuccessful, RandTest calls t.Fatal

The function newStore should return a new (empty) store to test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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