10

can anyone tell me what it the exact purpose of mtCOVERAGE_TEST_MARKER() macro in FreeRTOS sources? By default it expands to nothing.

It is obviously used for some coverage test, but I can't really think of a code that can be universally useful in all places where this macro is used.

1 Answer 1

12

They provide thorough code coverage analysis - so each time there is an if() without an else we can see in a more automated way if the code has taken the path where the if() evaluates to true and where the if() evaluates to false - rather than just one path. The coverage tests are not published, but the general coding standard is found here: http://www.freertos.org/FreeRTOS-Coding-Standard-and-Style-Guide.html

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.