Versions in this module Expand all Collapse all v0 v0.5.0 Feb 7, 2020 Changes in this version + func BoolPtr(b bool) *bool + func CreateTrackRequest(trackedObjGroup, trackedObjKind, trackedObjNamespace, trackedObjName string) trackBy + func Int32Ptr(i int32) *int32 + func Int64Ptr(i int64) *int64 + func StringPtr(str string) *string + func TestLogger(t *gotesting.T) logr.Logger + type Action = clientgotesting.Action + type CreateAction = clientgotesting.CreateAction + type DeleteAction = clientgotesting.DeleteAction + type DeleteRef struct + Group string + Kind string + Name string + Namespace string + func NewDeleteRef(action DeleteAction) DeleteRef + type Event struct + Message string + Reason string + Type string + func NewEvent(factory Factory, scheme *runtime.Scheme, ...) Event + type Factory interface + CreateObject func() apis.Object + type GetAction = clientgotesting.GetAction + type InduceFailureOpts struct + Error error + Name string + Namespace string + SubResource string + type ListAction = clientgotesting.ListAction + type PatchAction = clientgotesting.PatchAction + type ReactionFunc = clientgotesting.ReactionFunc + func InduceFailure(verb, kind string, o ...InduceFailureOpts) ReactionFunc + type Reactor = clientgotesting.Reactor + type ReconcilerFactory func(t *testing.T, row *Testcase, client client.Client, apiReader client.Reader, ...) reconcile.Reconciler + type SubReconcilerFactory func(t *testing.T, row *SubTestcase, client client.Client, tracker tracker.Tracker, ...) controllers.SubReconciler + type SubTable []SubTestcase + func (tb SubTable) Test(t *testing.T, scheme *runtime.Scheme, factory SubReconcilerFactory) + type SubTestcase struct + CleanUp func(t *testing.T) error + ExpectCreates []Factory + ExpectDeletes []DeleteRef + ExpectEvents []Event + ExpectParent Factory + ExpectStashedValues map[controllers.StashKey]interface{} + ExpectTracks []TrackRequest + ExpectUpdates []Factory + ExpectedResult controllerruntime.Result + Focus bool + GivenObjects []Factory + GivenStashedValues map[controllers.StashKey]interface{} + Name string + Parent Factory + Prepare func(t *testing.T) error + ShouldErr bool + Skip bool + Verify VerifyFunc + WithReactors []ReactionFunc + func (tc *SubTestcase) Test(t *testing.T, scheme *runtime.Scheme, factory SubReconcilerFactory) + type Table []Testcase + func (tb Table) Test(t *testing.T, scheme *runtime.Scheme, factory ReconcilerFactory) + type Testcase struct + APIGivenObjects []Factory + CleanUp func(t *testing.T) error + ExpectCreates []Factory + ExpectDeletes []DeleteRef + ExpectEvents []Event + ExpectStatusUpdates []Factory + ExpectTracks []TrackRequest + ExpectUpdates []Factory + ExpectedResult controllerruntime.Result + Focus bool + GivenObjects []Factory + Key types.NamespacedName + Name string + Prepare func(t *testing.T) error + ShouldErr bool + Skip bool + Verify VerifyFunc + WithReactors []ReactionFunc + func (tc *Testcase) Test(t *testing.T, scheme *runtime.Scheme, factory ReconcilerFactory) + type TrackRequest struct + Tracked tracker.Key + Tracker types.NamespacedName + func NewTrackRequest(t, b Factory, scheme *runtime.Scheme) TrackRequest + type UpdateAction = clientgotesting.UpdateAction + type VerifyFunc func(t *testing.T, result controllerruntime.Result, err error) + func AssertErrorEqual(expected error) VerifyFunc + func AssertErrorMessagef(message string, a ...interface{}) VerifyFunc