MCPcopy Create free account
hub / github.com/Abc-Arbitrage/Disruptor-cpp / failIf

Function failIf

Disruptor.PerfTests/PerfTestUtil.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 void failIf(std::int64_t a, std::int64_t b, const std::string& message)
29 {
30 if (a == b)
31 {
32 throw std::runtime_error(message.empty() ? "Test failed " + std::to_string(a) + " == " + std::to_string(b) : message);
33 }
34 }
35
36 void failIfNot(std::int64_t a, std::int64_t b, const std::string& message)
37 {

Callers 1

runMethod · 0.85

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected