awslabs / aws-crypto-tools-test-vector-framework
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 21 units with 338 lines of code in units (70.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (138 lines of code)
    • 19 very simple units (200 lines of code)
0% | 0% | 0% | 40% | 59%
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% | 0% | 0% | 40% | 59%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
features0% | 0% | 0% | 40% | 59%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _test_manifest()
in features/0003-awses-message-encryption-generate.py
53 9 2
def _build_tests()
in features/0006-awses-message-decryption-generation-generate.py
85 7 1
def build_tests()
in features/awses_message_encryption_utils.py
15 5 1
def _split_on_decryptable()
in features/awses_message_encryption_utils.py
10 4 3
def _raw_rsa_providers()
in features/awses_message_encryption_utils.py
20 4 1
def build_manifest()
in features/0002-keys-generate.py
36 4 0
def _tests_for_type()
in features/0003-awses-message-encryption-generate.py
6 4 2
def _tests_for_algorithm()
in features/0003-awses-message-encryption-generate.py
6 4 2
def _keys_for_algorithm()
in features/awses_message_encryption_utils.py
4 3 2
def _keys_for_type()
in features/awses_message_encryption_utils.py
4 3 2
def _keys_for_encryptval()
in features/awses_message_encryption_utils.py
4 3 2
def _keys_for_decryptval()
in features/awses_message_encryption_utils.py
4 3 2
def _aws_kms_providers()
in features/awses_message_encryption_utils.py
10 3 1
def _test_manifest()
in features/0002-keys-generate.py
4 3 1
def main()
in features/0006-awses-message-decryption-generation-generate.py
14 2 1
def _raw_aes_providers()
in features/awses_message_encryption_utils.py
10 2 1
def main()
in features/0002-keys-generate.py
12 2 1
def main()
in features/0003-awses-message-encryption-generate.py
15 2 1
def build_manifest()
in features/0006-awses-message-decryption-generation-generate.py
11 1 1
def _providers()
in features/awses_message_encryption_utils.py
4 1 1