Versions in this module Expand all Collapse all v0 v0.4.2 Dec 13, 2022 Changes in this version + const FakeClientResourceVersion + func FakeStartSyncer(t *testing.T, ctx *synccontext.RegisterContext, ...) (*synccontext.SyncContext, syncer.Base) + func NewFakeMapper(scheme *runtime.Scheme) meta.RESTMapper + func NewFakeRegisterContext(pClient *FakeIndexClient, vClient *FakeIndexClient) *synccontext.RegisterContext + func NewScheme() *runtime.Scheme + func RunTests(t *testing.T, tests []*SyncTest) + type Compare func(obj1 runtime.Object, obj2 runtime.Object) bool + type FakeIndexClient struct + func NewFakeClient(scheme *runtime.Scheme, objs ...runtime.Object) *FakeIndexClient + func (fc *FakeIndexClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error + func (fc *FakeIndexClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error + func (fc *FakeIndexClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error + func (fc *FakeIndexClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error + func (fc *FakeIndexClient) IndexField(ctx context.Context, obj client.Object, field string, ...) error + func (fc *FakeIndexClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error + func (fc *FakeIndexClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error + func (fc *FakeIndexClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error + type SyncTest struct + Compare Compare + ExpectedPhysicalState map[schema.GroupVersionKind][]runtime.Object + ExpectedVirtualState map[schema.GroupVersionKind][]runtime.Object + InitialPhysicalState []runtime.Object + InitialVirtualState []runtime.Object + Name string + Sync func(ctx *synccontext.RegisterContext) + func (s *SyncTest) Run(t *testing.T)