testsuite

package
v1.3.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentCrossNSIsolatedSuite added in v1.3.0

func ContentCrossNSIsolatedSuite(t *testing.T, name string, storeFn StoreInitFn)

ContentCrossNSIsolatedSuite runs a test suite under isolated content policy

func ContentCrossNSSharedSuite added in v1.3.0

func ContentCrossNSSharedSuite(t *testing.T, name string, storeFn StoreInitFn)

ContentCrossNSSharedSuite runs a test suite under shared content policy

func ContentSuite

func ContentSuite(t *testing.T, name string, storeFn StoreInitFn)

ContentSuite runs a test suite on the content store given a factory function.

func Name added in v1.1.0

func Name(ctx context.Context) string

Name gets the test name from the context

func SetContextWrapper added in v1.1.0

func SetContextWrapper(ctx context.Context, w ContextWrapper) context.Context

SetContextWrapper sets the wrapper on the context for deriving new test contexts from the context.

Types

type ContextWrapper added in v1.1.0

type ContextWrapper func(ctx context.Context) (context.Context, func(context.Context) error, error)

ContextWrapper is used to decorate new context used inside the test before using the context on the content store. This can be used to support leasing and multiple namespaces tests.

type StoreInitFn added in v1.3.0

type StoreInitFn func(ctx context.Context, root string) (context.Context, content.Store, func() error, error)

StoreInitFn initializes content store with given root and returns a function for destroying the content store

Jump to

Keyboard shortcuts

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