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

Function TEST

tests/CppUTest/SetPluginTest.cpp:77–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75};
76
77TEST(SetPointerPluginTest, installTwoFunctionPointer)
78{
79 FunctionPointerUtestShell *tst = new FunctionPointerUtestShell();
80
81 fp1 = orig_func1;
82 fp2 = orig_func2;
83 myRegistry_->addTest(tst);
84 myRegistry_->runAllTests(*result_);
85 CHECK(fp1 == orig_func1);
86 CHECK(fp2 == orig_func2);
87 LONGS_EQUAL(0, result_->getFailureCount());
88 LONGS_EQUAL(2, result_->getCheckCount());
89 delete tst;
90}
91
92class MaxFunctionPointerUtest : public Utest
93{

Callers

nothing calls this directly

Calls 4

addTestMethod · 0.45
runAllTestsMethod · 0.45
getFailureCountMethod · 0.45
getCheckCountMethod · 0.45

Tested by

no test coverage detected