Documentation
¶
Index ¶
- func ContentCrossNSIsolatedSuite(t *testing.T, name string, storeFn StoreInitFn)
- func ContentCrossNSSharedSuite(t *testing.T, name string, storeFn StoreInitFn)
- func ContentSharedNSIsolatedSuite(t *testing.T, name string, storeFn StoreInitFn)
- func ContentSuite(t *testing.T, name string, storeFn StoreInitFn)
- func Name(ctx context.Context) string
- func SetContextWrapper(ctx context.Context, w ContextWrapper) context.Context
- type ContextWrapper
- type StoreInitFn
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 ContentSharedNSIsolatedSuite ¶ added in v1.6.9
func ContentSharedNSIsolatedSuite(t *testing.T, name string, storeFn StoreInitFn)
ContentSharedNSIsolatedSuite runs a test suite for shared namespaces under isolated 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 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, sharedNS bool) (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.
Click to show internal directories.
Click to hide internal directories.