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.
19
Upvotes
View all comments
Show parent comment
51
u/STL MSVC STL Dev Feb 28 '26
How dare you mock me!!