047 counterfeiter

Опубликовано: 30 Сентябрь 2024
на канале: Testing All The Things
383
12

In this episode of Testing All The Things we refactor the test code we created in episodes 027 - 030. Replacing the hand coded test doubles with ones we create using the Golang mocking framework Counterfeiter by Max Brunsfeld.

we use Counterfeiter to generate Mocks, Spies and a Fake for our Golang driving licence number generator.

The code produced during this episode can be found on GitHub:
https://github.com/testingallthething...

You can follow me on twitter:   / braddle  

** Please Rate, Review, Subscribe and Share these videos **