Cognitive complexity
88.2 %
Correct
15/17
11.8 %
Warning
2/17
(threshold : 10)
0 %
Error
0/17
(threshold : 20)
Cyclomatic complexity
88.2 %
Correct
15/17
11.8 %
Warning
2/17
(threshold : 5)
0 %
Error
0/17
(threshold : 10)
Methods of if.mock.ts
Complexity Index | 0 | Cyclomatic complexity | 0 | |
---|---|---|---|---|
|
ifAlone | Complexity Index | 1.6 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
ifElse | Complexity Index | 2.9 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
ifIfNested | Complexity Index | 3.6 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
ifElseIfElse | Complexity Index | 4.4 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
ifElseIfIfElse | Complexity Index | 6.2 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|
ifElseIfInside | Complexity Index | 4.7 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
ifNestedIf | Complexity Index | 3.7 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
ifIfElseInside | Complexity Index | 5 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
ifAnd | Complexity Index | 4.1 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
ifOr | Complexity Index | 4.1 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
ifAndAnd | Complexity Index | 5.5 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|
ifAndOr | Complexity Index | 7.5 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|
ifAndAndOrAnd | Complexity Index | 13.7 | Cyclomatic complexity | 7 |
---|---|---|---|---|
|
ifAndAndOrAndAndOrOr | Complexity Index | 16.3 | Cyclomatic complexity | 9 |
---|---|---|---|---|
|
ifIfIf | Complexity Index | 7.2 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|
ifIfIfElse | Complexity Index | 9.6 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|