Home > User Support > QTE

FAQ / QTE (Quality Town for Embedded Grade)

yQTE13zIssues Related to Result Verification

QTE13_03 : Member function, class definition

yquestionz
In functional safety coverage mode, member functions of the class under test have 0% coverage even though they are called during testing.
What causes it to be 0%?

yAnswerz
There are two possible causes

‡@@When analyzing the source file to be tested, the header file containing the target class definition was not set as the header file to be tested.
Coverage measurement code could not be embedded in member functions.

‡A@The object file of the source in which the coverage measurement code is embedded is linked after the object file of the test driver source.


Therefore, please check the following two points

‡@@Define the target class in the "cov-target-header-path-list" option in project.json
Make sure you have set the header file pa

‡A@Check the order of the object files to be linked to the executable file.
If the object file from which the source under test is compiled is linked after the object file of the test driver source
Please set the object file in which the test target source is compiled to be linked before the object file of the test driver source.
After setting, rerun from the prepare command.

Search for related support information.

yGoogle Search in Support Information Sitez

search keywordF@

Other Keyword Search




Reference information and links