| 5834 | bool IsTrue(bool condition) { return condition; } |
| 5835 | |
| 5836 | bool 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 |
no test coverage detected