Improvement of cyclomatic complexity to more accurately estimate number of equivalence classes for testing #136
Labels
component: sem
Affects semantic analysis
difficulty: extreme
This change requires significant language/algorithm/architecture design
requires: sem
Change can only be implemented once semantic analysis works
tool: mh_metrics
Affects the code metrics tool
Cyclomatic complexity is based on the control flow of graph of the program. As a result of that the cyclomatic complexit of the following two pieces of code are different.
a)
b)
However both pieces of code would require the same number of tests to cover all equivalence classes.
An improved metric which treats these as being equally complex would be very useful.
The text was updated successfully, but these errors were encountered: