+1
0
-1

How to modify constant data to achieve coverage?

Is it possible to modify constant data of same file as function being evaluated, to achieve 100% coverage.
Suppose example code is,
typedef struct EEPROM_MAP_STRUCT
{
...

Posting in: 

4 Answers:

+1
0
-1
Hello Pravin, I am srinivas FAE India , regarding the question , you can make the tool ignore the const specifier , by selecting Ignore type qualfiers for testable...
+1
0
-1

I did the same. I went to build option and selected the ignore type qualifiers and recompiled the code. But still im getting the same error, "assignment of a read only option"

+1
0
-1

is there any other solution ? I'm also facing the same issue. Please help.

+1
0
-1

Hello,

In the example, the purpose of the code is to form a sanity check on the size and the offset.

I would recommend CBA with a note saying, not covered because of that.

At...