Documentation
¶
Index ¶
- func AssertEvent(t *testing.T, recorder *record.FakeRecorder, expected string)
- func AssertEvents(t *testing.T, recorder *record.FakeRecorder, expected ...string)
- func SetFiles(t *testing.T, files map[string]string) func()
- func Setenv(t *testing.T, args ...string) func()
- type KlogCapture
- type TLSPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEvent ¶ added in v1.39.3
func AssertEvent(t *testing.T, recorder *record.FakeRecorder, expected string)
AssertEvent asserts that recorder recorded expected, or nothing at all if expected is empty.
func AssertEvents ¶ added in v1.39.3
func AssertEvents(t *testing.T, recorder *record.FakeRecorder, expected ...string)
AssertEvents asserts that recorder recorded exactly the expected events in order.
Types ¶
type KlogCapture ¶ added in v1.38.0
type KlogCapture struct {
// contains filtered or unexported fields
}
KlogCapture holds the log output collected by CaptureKlog.
func CaptureKlog ¶ added in v1.38.0
func CaptureKlog(t *testing.T) *KlogCapture
CaptureKlog redirects the klog output into a buffer for the duration of the test.
func (*KlogCapture) String ¶ added in v1.38.0
func (c *KlogCapture) String() string
String returns everything klog has logged so far.