Documentation ¶
Index ¶
- Variables
- func AssertContext(t *testing.T, want, got context.Context)
- func Context(parent context.Context) context.Context
- func CustomJSONMarshaling(t *testing.T, input interface{}, decoded interface{})
- func FromContext(ctx context.Context) string
- func WithContext(ctx context.Context, value string) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ( APIKey = "9d7831d8-03f1-4b4c-a1c3-97272ddefe6a" //nolint:gosec UserAgent = "go-katapult/test" )
Functions ¶
func AssertContext ¶ added in v0.1.5
AssertContext asserts that both given contexts has the same test key value set.
func Context ¶ added in v0.1.5
Context returns a new context.Context with a random value assigned to the test key value using WithContext. Returns nil if parent context is nil.
func CustomJSONMarshaling ¶
func FromContext ¶ added in v0.1.5
FromContext returns the test context value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.