January 2020
Intermediate to advanced
548 pages
13h 36m
English
Cyclomatic complexity is a measure of how many linearly independent paths there are through a program's code.
Consider a simple program that contains several conditional checks and function invocations:
if (a) { alpha(); if (b) bravo(); if (c) charlie();}if (d) delta();
Even in this misleadingly simple piece of code, nine distinct paths can be taken. So, depending on the values of a, b, c, and d, there are nine possible sequences of alpha, bravo, charlie, and delta that will run:
A high level of ...
Read now
Unlock full access