~/talk

How to Test Go Code That Uses a Database?

TalkinRussianat GolangConf 2023 · 2023-11-27..11-28· [testing]
links:none on file
slides:none on file

Shows techniques for testing Go code that interacts with databases, addressing problems caused by brittle mocks that must change with each code modification. Covers approaches to restore flexibility and improve test guarantees—likely including alternative testing strategies and patterns for database-dependent Go code.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Mock-only tests pain
  3. 3:26Local database setup
  4. 6:36Connection parameters
  5. 8:02Database cleanup
  6. 10:30Transaction rollback
  7. 12:00Database copy method
  8. 13:44Parallel test execution
  9. 16:20Integration tests
  10. 17:44CI automation
  11. 19:54Test performance
  12. 22:45Performance results
  13. 23:50Integration test benefits
  14. 25:12Recommendations
  15. 27:21Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.