MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / AlwaysTrue

Function AlwaysTrue

rtpose_wrapper/src/gtest/gtest-all.cpp:5836–5844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5834bool IsTrue(bool condition) { return condition; }
5835
5836bool AlwaysTrue() {
5837#if GTEST_HAS_EXCEPTIONS
5838 // This condition is always false so AlwaysTrue() never actually throws,
5839 // but it makes the compiler think that it may throw.
5840 if (IsTrue(false))
5841 throw ClassUniqueToAlwaysTrue();
5842#endif // GTEST_HAS_EXCEPTIONS
5843 return true;
5844}
5845
5846// If *pstr starts with the given prefix, modifies *pstr to be right
5847// past the prefix and returns true; otherwise leaves *pstr unchanged

Callers 2

AlwaysFalseFunction · 0.85
SplitStringFunction · 0.85

Calls 2

IsTrueFunction · 0.85

Tested by

no test coverage detected