Documentation ¶
Index ¶
- func AssertStructFields(t *testing.T, expectations map[string]interface{}, actual interface{}) bool
- func CheckStructFields(expectations map[string]interface{}, actual interface{}) (field.ErrorList, error)
- func ExampleEtcdBackupSchedule(namespace string) *etcdv1alpha1.EtcdBackupSchedule
- func ExampleEtcdCluster(namespace string) *etcdv1alpha1.EtcdCluster
- func ExampleEtcdPeer(namespace string) *etcdv1alpha1.EtcdPeer
- type TestLogger
- func (_ TestLogger) Enabled() bool
- func (log TestLogger) Error(err error, msg string, args ...interface{})
- func (log TestLogger) Info(msg string, args ...interface{})
- func (log TestLogger) V(v int) logr.InfoLogger
- func (log TestLogger) WithName(name string) logr.Logger
- func (log TestLogger) WithValues(values ...interface{}) logr.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertStructFields ¶
func CheckStructFields ¶
func CheckStructFields(expectations map[string]interface{}, actual interface{}) (field.ErrorList, error)
CheckStructFields asserts that the struct fields referenced by the supplied expectation path, have a value equal to the expectation value.
func ExampleEtcdBackupSchedule ¶ added in v0.2.0
func ExampleEtcdBackupSchedule(namespace string) *etcdv1alpha1.EtcdBackupSchedule
func ExampleEtcdCluster ¶
func ExampleEtcdCluster(namespace string) *etcdv1alpha1.EtcdCluster
ExampleEtcdCluster returns a valid example for testing purposes.
func ExampleEtcdPeer ¶
func ExampleEtcdPeer(namespace string) *etcdv1alpha1.EtcdPeer
ExampleEtcdPeer returns a valid example for testing purposes.
Types ¶
type TestLogger ¶ added in v0.2.0
TestLogger is a logr.Logger that prints through a testing.T object.
func (TestLogger) Enabled ¶ added in v0.2.0
func (_ TestLogger) Enabled() bool
func (TestLogger) Error ¶ added in v0.2.0
func (log TestLogger) Error(err error, msg string, args ...interface{})
func (TestLogger) Info ¶ added in v0.2.0
func (log TestLogger) Info(msg string, args ...interface{})
func (TestLogger) V ¶ added in v0.2.0
func (log TestLogger) V(v int) logr.InfoLogger
func (TestLogger) WithName ¶ added in v0.2.0
func (log TestLogger) WithName(name string) logr.Logger
func (TestLogger) WithValues ¶ added in v0.2.0
func (log TestLogger) WithValues(values ...interface{}) logr.Logger
Click to show internal directories.
Click to hide internal directories.