MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / AlwaysTrue

Function AlwaysTrue

test/common/gtest/gtest.cpp:6566–6574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6564bool IsTrue(bool condition) { return condition; }
6565
6566bool AlwaysTrue() {
6567#if GTEST_HAS_EXCEPTIONS
6568 // This condition is always false so AlwaysTrue() never actually throws,
6569 // but it makes the compiler think that it may throw.
6570 if (IsTrue(false))
6571 throw ClassUniqueToAlwaysTrue();
6572#endif // GTEST_HAS_EXCEPTIONS
6573 return true;
6574}
6575
6576// If *pstr starts with the given prefix, modifies *pstr to be right
6577// past the prefix and returns true; otherwise leaves *pstr unchanged

Callers 2

SplitStringFunction · 0.85
AlwaysFalseFunction · 0.85

Calls 2

IsTrueFunction · 0.85

Tested by

no test coverage detected