Assigning the mtCOVERAGE_TEST_MARKER Macro to FreeRTOS

can someone tell me what exactly is the purpose of the mtCOVERAGE_TEST_MARKER () macro in FreeRTOS sources? By default, it does not change.

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

+5
source share
1 answer

They provide a thorough analysis of code coverage - therefore, every time there is if () without else, we can see in a more automatic way if the code took a path where if () evaluates to true and where if () evaluates to false, and not just one way. Coverage tests are not published, but the general coding standard is here: http://www.freertos.org/FreeRTOS-Coding-Standard-and-Style-Guide.html

+9
source

Source: https://habr.com/ru/post/1204622/


All Articles