microsoft / lisa
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 1,986 units with 14,026 lines of code in units (50.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (158 lines of code)
    • 29 medium complex units (1,392 lines of code)
    • 99 simple units (2,607 lines of code)
    • 1,857 very simple units (9,869 lines of code)
0% | 1% | 9% | 18% | 70%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 1% | 10% | 18% | 69%
pyi0% | 0% | 0% | 0% | 100%
java0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
microsoft/testsuites0% | 4% | 11% | 27% | 56%
lisa0% | 0% | 12% | 18% | 69%
lisa/sut_orchestrator0% | 0% | 19% | 16% | 63%
lisa/runners0% | 0% | 32% | 24% | 43%
lisa/tools0% | 0% | 1% | 13% | 84%
lisa/features0% | 0% | 7% | 13% | 79%
lisa/util0% | 0% | 0% | 18% | 81%
lisa/transformers0% | 0% | 0% | 9% | 90%
lisa/combinators0% | 0% | 0% | 24% | 75%
lisa/parameter_parser0% | 0% | 0% | 5% | 94%
lisa/notifiers0% | 0% | 0% | 0% | 100%
typings/assertpy0% | 0% | 0% | 0% | 100%
typings/semver0% | 0% | 0% | 0% | 100%
lisa/base_tools0% | 0% | 0% | 0% | 100%
typings/pluggy0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def verify_repository_installed()
in microsoft/testsuites/core/azure_image_standard.py
158 38 2
75 22 2
def _generate_min_capability()
in lisa/sut_orchestrator/azure/features.py
95 22 2
def fetch_task()
in lisa/runners/lisa_runner.py
36 19 1
def check()
in lisa/schema.py
67 18 2
def validate_device_statistics()
in microsoft/testsuites/network/networksettings.py
61 18 3
def discover_running_cases()
in lisa/runners/legacy_runner.py
53 17 1
def _start_loop()
in lisa/runner.py
37 15 1
def check()
in lisa/search_space.py
54 15 2
def _get_environment_information()
in lisa/sut_orchestrator/azure/platform_.py
40 15 2
def verify_vmbus_interrupts()
in microsoft/testsuites/core/cpu.py
56 15 3
def verify_grub()
in microsoft/testsuites/core/azure_image_standard.py
38 14 2
def _kdump_test()
in microsoft/testsuites/kdump/kdumpcrash.py
47 14 3
def _set_completed_results()
in lisa/runners/legacy_runner.py
35 13 3
def check_countspace()
in lisa/search_space.py
47 13 2
def _get_platform_information()
in lisa/sut_orchestrator/azure/platform_.py
31 13 2
def _get_location_info()
in lisa/sut_orchestrator/azure/platform_.py
70 13 3
def reboot()
in lisa/tools/reboot.py
47 13 2
def _install()
in microsoft/testsuites/dpdk/dpdktestpmd.py
93 13 1
def _set_running_results()
in lisa/runners/legacy_runner.py
25 12 3