Hacker News new | ask | show | jobs
by 124816 5724 days ago
Also, there are really good free alternatives: googletest/gmock supports Windows, linux, and (I think) Mac.

The interesting feature appears to be 'Test "untestable" code such as statics, globals and non-virtual methods.'

I'm not sure how/if this could be done within vanilla C++, though maybe you could write a GCC/clang plugin to allow hooking of everything.