pkg/webhook
Vincent Demeester 781d6bbc47 Move the use of `VerifyType` in tests (#98)
* Change VerifyType to return an error instead of panicking

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>

* Move the use of `VerifyType` in tests

Those calls to `duck.VerifyType` are done at runtime and thus could be
costly at program startup. Putting them under tests ensure we still
assert those types but during unit testing.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2018-09-27 15:16:22 -07:00
..
OWNERS Pull the webhook from `knative/serving` into `knative/pkg`. (#23) 2018-07-27 19:03:36 -07:00
certs.go Pull the webhook from `knative/serving` into `knative/pkg`. (#23) 2018-07-27 19:03:36 -07:00
certs_test.go Use zaptest logger for our TestLogger (#89) 2018-09-25 21:40:20 -07:00
helper_test.go Use zaptest logger for our TestLogger (#89) 2018-09-25 21:40:20 -07:00
webhook.go Move the use of `VerifyType` in tests (#98) 2018-09-27 15:16:22 -07:00
webhook_integration_test.go Eliminate custom methods from GenericCRD (#78) 2018-09-18 14:25:19 -07:00
webhook_test.go Use zaptest logger for our TestLogger (#89) 2018-09-25 21:40:20 -07:00