| 6564 | bool IsTrue(bool condition) { return condition; } |
| 6565 | |
| 6566 | bool 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 |
no test coverage detected