~/talk

Testability and API Design

Talkat CppNorth 2024 Β· 2024-07-21..07-24Β· [testing, api-design]
links:none on file
links:none on file
links:none on file
slides:none on file

Covers concrete recipes: use pointer to implementation to test multiple implementations (software and hardware CRC32 examples), prefer dependency injection to replace real services with mocks, add a friend test guard or a event scheduler test time source to advance time deterministically, and use an abstract factory to swap test/production components in one place. Also recommends providing bundled mock interfaces and proposes a code-generator that emits interfaces, mocks, pimpls and test scaffolding.

AI-written summary Β· about

  1. 0:00Introduction
  2. 1:47Testing background and basics
  3. 8:49SOLID principles and motivation
  4. 15:04Practical testing techniques
  5. 36:21Mocking, challenges, and tools
  6. 59:34Conclusion
~/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.