MCPcopy Create free account
hub / github.com/cpputest/cpputest / ieee754Check

Method ieee754Check

src/CppUTestExt/IEEE754ExceptionsPlugin.cpp:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void IEEE754ExceptionsPlugin::ieee754Check(UtestShell& test, TestResult& result, int flag, const char* text)
93{
94 result.countCheck();
95 if(inexactDisabled_) CHECK(!feclearexcept(FE_INEXACT));
96 if(fetestexcept(flag)) {
97 CHECK(!feclearexcept(FE_ALL_EXCEPT));
98 CheckFailure failure(&test, __FILE__, __LINE__, "IEEE754_CHECK_CLEAR", text);
99 result.addFailure(failure);
100 }
101}
102
103#else
104

Callers

nothing calls this directly

Calls 2

addFailureMethod · 0.80
countCheckMethod · 0.45

Tested by

no test coverage detected