~/talk

The Best Mock in the World: Examining Tools for Generating Mocks in Go

TalkinRussianat Golang Conf 2024 · 2024-12-02..12-03· [testing, developer-experience]
links:none on file
slides:none on file

A comparison of Go interface mock generators—Mockery, Gomock, and Minimock—using practical examples to show each tool's advantages, disadvantages, and ease of use. The talk also covers best practices for writing unit tests with mocks in Go.

AI-written summary · about

  1. 0:00Introduction
  2. 5:45Mock generation
  3. 9:55Expectation typing
  4. 13:28Call limits
  5. 17:21Call order checks
  6. 21:36Working with aliases
  7. 25:53Async tests
  8. 31:17Fixing bad tests
  9. 33:28Tool comparison
  10. 34:30Summary and recommendations
  11. 35:38Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.