nginxinc / nginx-gateway-fabric

NGINX Gateway Fabric provides an implementation for the Gateway API using NGINX as the data plane.
Apache License 2.0
464 stars 90 forks source link

Replace counterfeiter mock generator #460

Open kate-osborn opened 1 year ago

kate-osborn commented 1 year ago

Counterfeiter generates mocks of interfaces that can be used in unit testing. However, these generated mocks import the package that the interface is defined in. This prevents us from using the mocks in unit tests that also import the interface package. This makes it hard for us to define interfaces on the client side.

A/C:

Aha! Link: https://nginx.aha.io/features/NKG-54

bjee19 commented 5 months ago

Consider blocking on issue #1564 until this is through.