How does cyclomatic complexity assist in white-box testing?

  • Assesses risk in code logic
  • Counts number of defects
  • Determines code coverage needs
  • Measures code readability
Cyclomatic complexity, introduced by Thomas McCabe, quantifies the complexity of a program by calculating the number of linearly independent paths through the source code. A higher cyclomatic value indicates a complex program with many branches, which may require more extensive testing to ensure each path is evaluated. It aids testers in assessing risks associated with the intricate logic of the code.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *