* @brief Reports a single check and returns 1 on failure, 0 on success. */
| 64 | * @brief Reports a single check and returns 1 on failure, 0 on success. |
| 65 | */ |
| 66 | [[nodiscard]] static int expect(const char* name, bool condition) |
| 67 | { |
| 68 | if (condition) { |
| 69 | qInfo().noquote() << " PASS" << name; |
| 70 | return 0; |
| 71 | } |
| 72 | |
| 73 | qCritical().noquote() << " FAIL" << name; |
| 74 | return 1; |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * @brief Verifies a vector and returns whether it produced the expected status. |
no outgoing calls
no test coverage detected