MCPcopy Create free account
hub / github.com/catchorg/Catch2 / truthy

Class truthy

tests/SelfTest/UsageTests/Decomposition.tests.cpp:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace {
13
14struct truthy {
15 truthy(bool b):m_value(b){}
16 operator bool() const {
17 return false;
18 }
19 bool m_value;
20};
21
22std::ostream& operator<<(std::ostream& o, truthy) {
23 o << "Hey, its truthy!";

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected