1.

What is the relationship between the cyclomatic complexity of code and unit tests?

Answer»

The CODE cyclomatic complexity is calculated based on the number of DECISION POINTS of the code that contributes to different execution paths as shown in the image below:

This is why, higher the cyclomatic complexity, the more DIFFICULT is to attain the REQUIRED code coverage.



Discussion

No Comment Found