Registry / testing / trompeloeil

trompeloeil

JSON →
library49vcpkgunverified

A thread-safe header-only mocking framework for C++11/14 using the Boost Software License 1.0.

vcpkg install trompeloeil
INSTALL
IMPORT
SIG · TROMPELOEIL
T
trompeloeil
testingcppv49
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

trompeloeil.hpp
#include <trompeloeil.hpp>

Define a mock class and verify a method call.

#include <trompeloeil.hpp> #include <iostream> class Mock { public: MAKE_MOCK1(foo, void(int)); }; int main() { Mock m; REQUIRE_CALL(m, foo(42)).TIMES(1); m.foo(42); std::cout << "Mock test passed\n"; return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
49latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources

No resource links recorded.

trompeloeil — pip install trompeloeil · libregistry