Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithClients ¶
func WithClients(tb testing.TB, handler func(c ClientsContext))
WithClients runs provided handler within a ClientsContext, so that the handler has access to configured k8s.Clients.
func WithKnTest ¶
func WithKnTest(tb testing.TB, handler func(c *TestContext))
WithKnTest runs handler within a TestContext, so that the handler has access to clienttest.KnTest.
Types ¶
type ClientsContext ¶
type ClientsContext struct { k8s.Clients *TestContext }
ClientsContext holds a Kubernetes clients context.
type TestContext ¶
type TestContext struct { testing.TB *clienttest.KnTest }
TestContext holds a test context.
Click to show internal directories.
Click to hide internal directories.