Trompeloeil is a header-only C++14 mocking framework designed for ease of use without sacrificing expressive power. It uses macros like MAKE_MOCK, REQUIRE_CALL, and NAMED_REQUIRE_CALL to define mock classes and set expectations on method calls. Key features include sequence ordering of calls, wildcards, call count constraints
Table of contents
Simple example Copy link Link copied!Expectations and fixtures Copy link Link copied!Mocking with side effects Copy link Link copied!Wrap-up Copy link Link copied!Sort: