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

Class FunctionPointerUtest

tests/CppUTest/SetPluginTest.cpp:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50};
51
52class FunctionPointerUtest : public Utest
53{
54public:
55 void setup() _override
56 {
57 UT_PTR_SET(fp1, stub_func1);
58 UT_PTR_SET(fp2, stub_func2);
59 UT_PTR_SET(fp2, stub_func2);
60 }
61 void testBody() _override
62 {
63 CHECK(fp1 == stub_func1);
64 CHECK(fp2 == stub_func2);
65 }
66};
67
68class FunctionPointerUtestShell: public UtestShell
69{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected