# Fixture with known complexity values, used by integration tests.
# Cognitive: for(+1) + nested for(+2) + nested if(+3) + else(+1 flat) = 7
# Cyclomatic: base 1 + for + for + if = 4
# (Python has no labelled `continue`, so the flat `else` supplies the 7th
# cognitive point that the other languages get from a labelled `continue`.)
= 0
+= 0
+=
return
# Cognitive: match(+1) = 1 ; Cyclomatic: base 1 + 2 non-default cases = 3
:
1:
return
2:
return
:
return
# Cognitive: if(+1) + and(+1) = 2 ; Cyclomatic: base 1 + if + and = 3
return
return