SECTION 29 / 48

Cyclomatic Complexity

1 min read

Cyclomatic complexity is the number of decision and loop statements plus 1. Here it is 3 + 1 = 4: four independent paths, requiring at least four test cases.

Cyclomatic Complexity
Cyclomatic Complexity
Open image ↗
Cyclomatic Complexity
YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑