~/talk

Testing C++ Templates: Investigating Tests for C++ Templates using Adversarial Methods

Talkat ACCU 2024 · 2024-04-17..04-20· [testing, c-and-cpp]
links:none on file
slides:none on file

Explains a practical approach for testing C++ templates using Google Test plus a small custom instantiation layer, runtime equivalence classes for input sets, and an explicit adversarial testing pattern that injects known-bad implementations so tests must fail when they should. Shows that line coverage is a weak metric (coverage is insufficient), demos with Compiler Explorer reveal missing checks, and reports the pattern reduces missed cases in a Bosch template library once integrated.

AI-written summary · about

  1. 0:00Introduction
  2. 11:24Testing C++ templates challenges
  3. 21:43Structured template testing
  4. 31:20Runtime variation and equivalence
  5. 42:31Coverage tools limitations
  6. 50:01Adversarial testing method
  7. 1:04:28Adversarial testing benefits
  8. 1:14:23Conclusion
~/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.