storagetest

package
v0.0.0-...-21f2861 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2014 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package storagetest tests blobserver.Storage implementations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEnumerate

func CheckEnumerate(sto blobserver.Storage, wantUnsorted []blob.SizedRef, opts ...interface{}) error

func Test

func Test(t *testing.T, fn func(*testing.T) (sto blobserver.Storage, cleanup func()))

func TestOpt

func TestOpt(t *testing.T, opt Opts)

Types

type Opts

type Opts struct {
	// New is required and must return the storage server to test, along with a func to
	// clean it up. The cleanup may be nil.
	New func(*testing.T) (sto blobserver.Storage, cleanup func())

	// Retries specifies how long to wait to retry after each failure
	// that may be an eventual consistency issue (enumerate, stat), etc.
	Retries []time.Duration
}

Jump to

Keyboard shortcuts

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