MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / expect

Function expect

app/src/Licensing/OfflineSelfTest.cpp:66–75  ·  view source on GitHub ↗

* @brief Reports a single check and returns 1 on failure, 0 on success. */

Source from the content-addressed store, hash-verified

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.

Callers 6

runVerifierChecksFunction · 0.85
runClockRewindCheckFunction · 0.85
parseOneofMethod · 0.85
parseMapMethod · 0.85
parseFieldMethod · 0.85
parseMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected