camlistore: github.com/zhgwenming/camlistore/pkg/blobserver/storagetest Index | Files

package storagetest

import "github.com/zhgwenming/camlistore/pkg/blobserver/storagetest"

Package storagetest tests blobserver.Storage implementations

Index

Package Files

storagetest.go

func CheckEnumerate Uses

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

func Test Uses

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

func TestOpt Uses

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

type Opts Uses

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
}

Package storagetest imports 15 packages (graph). Updated 2018-04-21. Refresh now. Tools for package owners.