Skip to content

Commit

Permalink
remove Generational duck type check
Browse files Browse the repository at this point in the history
  • Loading branch information
dprotaso committed Feb 14, 2019
1 parent cfe9e55 commit 623ed2c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/apis/eventing/v1alpha1/implements_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,18 @@ import (
)

func TestTypesImplements(t *testing.T) {
var emptyGen duckv1alpha1.Generation
testCases := []struct {
instance interface{}
iface duck.Implementable
}{
// Channel
{instance: &Channel{}, iface: &duckv1alpha1.Conditions{}},
{instance: &Channel{}, iface: &emptyGen},
{instance: &Channel{}, iface: &eventingduck.Subscribable{}},
{instance: &Channel{}, iface: &duckv1alpha1.Addressable{}},
// ClusterChannelProvisioner
{instance: &ClusterChannelProvisioner{}, iface: &duckv1alpha1.Conditions{}},
// Subscription
{instance: &Subscription{}, iface: &duckv1alpha1.Conditions{}},
{instance: &Subscription{}, iface: &emptyGen},
}
for _, tc := range testCases {
if err := duck.VerifyType(tc.instance, tc.iface); err != nil {
Expand Down

0 comments on commit 623ed2c

Please sign in to comment.