Documentation ¶
Overview ¶
Package testing contains test helpers for adapters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeFactory ¶
MakeFactory creates a testing factory for our controller.Reconciler, and initializes a Reconciler using the given Ctor as part of the process.
func NewScheme ¶
NewScheme returns a new scheme populated with the types defined in clientSetSchemes.
func TestControllerConstructor ¶
TestControllerConstructor tests that a controller constructor meets our requirements.
Types ¶
type Ctor ¶
type Ctor func(*testing.T, context.Context, *rt.TableRow, *Listers) controller.Reconciler
Ctor constructs a controller.Reconciler.
type Listers ¶
type Listers struct {
// contains filtered or unexported fields
}
Listers returns listers and objects filtered from those listers.
func NewListers ¶
NewListers returns a new instance of Listers initialized with the given objects.
func (*Listers) GetAWSSNSSourceLister ¶
func (l *Listers) GetAWSSNSSourceLister() listersv1alpha1.AWSSNSSourceLister
GetAWSSNSSourceLister returns a Lister for AWSSNSSource objects.
func (*Listers) GetSourcesObjects ¶
GetSourcesObjects returns objects from the sources API.