nlohmann / mutate_cpp

C++ Mutation Test Environment
MIT License
171 stars 22 forks source link

Ignore mutations inside string literals #25

Closed dirtcrusher closed 2 years ago

dirtcrusher commented 2 years ago

I removed the generation of patches inside string literals.

For projects containing debug/logging statements using = or / in them, this created a lot of patches. For example, the following line would generate 51 patches:

printf("roll = %.2f / pitch = %.2f / yaw = %.2f", roll, pitch, yaw);

Since it is a simple debug logging statement (and therefore not really useful to be tested), none of these patches were actually useful.

nlohmann commented 2 years ago

Thanks a lot!