Documentation ¶
Overview ¶
Package cloudtest provides utilities for testing.
Index ¶
- func RuntimeRawExtension(t *testing.T, p interface{}) *runtime.RawExtension
- type Log
- func (l *Log) Enabled(_ int) bool
- func (l *Log) Error(_ error, _ string, _ ...interface{})
- func (l *Log) Info(_ int, _ string, _ ...interface{})
- func (l *Log) Init(_ logr.RuntimeInfo)
- func (l *Log) V(_ int) logr.LogSink
- func (l *Log) WithName(_ string) logr.LogSink
- func (l *Log) WithValues(_ ...interface{}) logr.LogSink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RuntimeRawExtension ¶
func RuntimeRawExtension(t *testing.T, p interface{}) *runtime.RawExtension
RuntimeRawExtension takes anything and turns it into a *runtime.RawExtension. This is helpful for creating clusterv1.Cluster/Machine objects that need a specific AWSClusterProviderSpec or Status.
Types ¶
type Log ¶
type Log struct{}
Log implements logr.Logger for testing. Do not use if you actually want to test log messages.
func (*Log) WithValues ¶
WithValues returns logs with specific values.
Click to show internal directories.
Click to hide internal directories.