Gopher Con 2024 How to Mock Fellow Gophers While Avoiding HR Dylan Bourque
We all write tests, at least we all should be writing tests. Some of us many of us maybe even most of us like to use mocks, fakes, etc. to insulate our tests from slowness and, or flakiness due to external dependencies. This talk will cover how I, an experienced and quite opinionated Gopher, structure my projects to accommodate test mocks, either generated or handwritten, while allowing for flexibility in the how across projects or even between packages within the same project. By following just a few simple strategies, you too can mock Go code without angering your coworkers. Больше видео по программированию в канале t. me, kodikapusta
|
|