r/cpp • u/According_Leopard_80 • Feb 28 '26
Mocking the Standard Template Library
https://middleraster.github.io/TBCI/MockingTheSTL.htmlWriting a test double for just one function or type in the STL can be achieved with "Test Base Class Injection" and namespace shadowing.
20
Upvotes
View all comments
Show parent comment
26
u/lucidbadger Feb 28 '26
I was about to apologise but then I saw MSVC in your status message and decided that I give my sympathy instead