| 50 | }; |
| 51 | |
| 52 | class FunctionPointerUtest : public Utest |
| 53 | { |
| 54 | public: |
| 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 | |
| 68 | class FunctionPointerUtestShell: public UtestShell |
| 69 | { |
nothing calls this directly
no outgoing calls
no test coverage detected