go-credit-card icon indicating copy to clipboard operation
go-credit-card copied to clipboard

Expose an interface so the Card methods can be mocked by other packages

Open 4k1k0 opened this issue 3 years ago • 0 comments
trafficstars

Right now Card does not implement an interface, so other packages can not mock the Card struct methods on their unit tests. Exposing a valid interface could improve the usage of this package.

4k1k0 avatar Jan 22 '22 22:01 4k1k0