MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / AlwaysTrue

Function AlwaysTrue

tests/gtest/gtest-all.cc:7135–7143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7133bool IsTrue(bool condition) { return condition; }
7134
7135bool AlwaysTrue() {
7136#if GTEST_HAS_EXCEPTIONS
7137 // This condition is always false so AlwaysTrue() never actually throws,
7138 // but it makes the compiler think that it may throw.
7139 if (IsTrue(false))
7140 throw ClassUniqueToAlwaysTrue();
7141#endif // GTEST_HAS_EXCEPTIONS
7142 return true;
7143}
7144
7145// If *pstr starts with the given prefix, modifies *pstr to be right
7146// 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