cppcheck/cfg/cppunit.cfg

49 lines
2.6 KiB
INI
Raw Normal View History

2019-02-17 20:16:01 +01:00
<?xml version="1.0"?>
<def format="2">
<!-- CppUnit sourceforge.net/projects/cppunit -->
<define name="CPPUNIT_TEST_SUITE(testsuite)" value=""/>
<define name="CPPUNIT_TEST(test)" value=""/>
<define name="CPPUNIT_TEST_SUITE_END()" value=""/>
<!-- Macros see http://cppunit.sourceforge.net/doc/cvs/group___assertions.html -->
2021-01-08 22:48:28 +01:00
<define name="CPPUNIT_ASSERT(condition)" value="{if (!(condition)) throw false;}"/>
<define name="CPPUNIT_ASSERT_MESSAGE(message, condition)" value="{if (!(condition)) throw message;}"/>
2020-06-17 13:10:15 +02:00
<define name="CPPUNIT_FAIL(message)" value="throw message;"/>
2021-01-08 22:48:28 +01:00
<define name="CPPUNIT_ASSERT_EQUAL(expected, actual)" value="{if ((expected) != (actual)) throw false;}"/>
<define name="CPPUNIT_ASSERT_EQUAL_MESSAGE(message, expected, actual)" value="{if ((expected) != (actual)) throw message;}"/>
<define name="CPPUNIT_ASSERT_DOUBLES_EQUAL(expected, actual, delta)" value="{if (std::abs((expected) - (actual)) &gt; delta) throw false;}"/>
<define name="CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(message, expected, actual, delta)" value="{if (std::abs((expected) - (actual)) &gt; delta) throw message;}"/>
2019-02-17 20:16:01 +01:00
<define name="CPPUNIT_ASSERT_THROW(expression, ExceptionType)" value=""/>
<define name="CPPUNIT_ASSERT_THROW_MESSAGE(message, expression, ExceptionType)" value=""/>
<define name="CPPUNIT_ASSERT_NO_THROW(expression)" value=""/>
<define name="CPPUNIT_ASSERT_NO_THROW_MESSAGE(message, expression)" value=""/>
<define name="CPPUNIT_ASSERT_ASSERTION_FAIL(assertion)" value="CPPUNIT_ASSERT_THROW( assertion, CPPUNIT_NS::Exception )"/>
<define name="CPPUNIT_ASSERT_ASSERTION_FAIL_MESSAGE(message, assertion)" value="CPPUNIT_ASSERT_THROW_MESSAGE( message, assertion, CPPUNIT_NS::Exception )"/>
<define name="CPPUNIT_ASSERT_ASSERTION_PASS(assertion)" value="CPPUNIT_ASSERT_NO_THROW( assertion )"/>
<define name="CPPUNIT_ASSERT_ASSERTION_PASS_MESSAGE(message, assertion)" value="CPPUNIT_ASSERT_NO_THROW_MESSAGE( message, assertion )"/>
<function name="CppUnit::TestCase::setUp,CppUnit::TestCase::tearDown">
<noreturn>false</noreturn>
<returnValue type="void"/>
</function>
<!-- virtual void addTest (Test *test) -->
<function name="CppUnit::TestRunner::addTest">
<noreturn>false</noreturn>
<returnValue type="void"/>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<!-- virtual void run (TestResult &controller, const std::string &testPath="") -->
<function name="CppUnit::TestRunner::run">
<noreturn>false</noreturn>
<returnValue type="void"/>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
</function>
</def>