Skip to content
RED SAG Skills
medium10 pts · first answer countstest-designwhite-box-testing

Cyclomatic complexity

What is the cyclomatic complexity of this function, and so the number of basis-path tests?

function grade(score) {
  if (score >= 90) return "A"
  if (score >= 50) return "Pass"
  return "Fail"
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions