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

Function compute_bools

tests/SelfTest/UsageTests/MatchersConstexpr.tests.cpp:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 constexpr MatchTrueMatcher MatchTrue() { return MatchTrueMatcher(); }
51
52 constexpr std::array<bool, 3> compute_bools( int type ) {
53 switch ( type ) {
54 case 0:
55 return { true, true, true };
56 case 1:
57 return { false, true, false };
58 case 2:
59 return { false, false, false };
60 case 3:
61 return { true, false, false };
62 case 4:
63 return { true, true, false };
64 default:
65 return { false, false, false };
66 }
67 }
68
69} // namespace
70

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected