package testsuite
import "github.com/containerd/containerd/content/testsuite"
Index ¶
- func ContentSuite(t *testing.T, name string, storeFn func(ctx context.Context, root string) (context.Context, content.Store, func() error, error))
- func Name(ctx context.Context) string
- func SetContextWrapper(ctx context.Context, w ContextWrapper) context.Context
- type ContextWrapper
Functions ¶
func ContentSuite ¶
func ContentSuite(t *testing.T, name string, storeFn func(ctx context.Context, root string) (context.Context, content.Store, func() error, error))
ContentSuite runs a test suite on the content store given a factory function.
func Name ¶
Name gets the test name from the context
func SetContextWrapper ¶
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 ¶
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.
Source Files ¶
- Version
- v1.2.6
- Published
- Apr 5, 2019
- Platform
- linux/amd64
- Imports
- 18 packages
- Last checked
- 1 minute ago –
Tools for package owners.