awslabs / amazon-qldb-driver-dotnet
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 266 units with 3,161 lines of code in units (74.7% 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)
    • 6 simple units (315 lines of code)
    • 260 very simple units (2,846 lines of code)
0% | 0% | 0% | 9% | 90%
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
cs0% | 0% | 0% | 9% | 90%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Amazon.QLDB.Driver.IntegrationTests0% | 0% | 0% | 10% | 89%
Amazon.QLDB.Driver/session0% | 0% | 0% | 60% | 39%
Amazon.QLDB.Driver/driver0% | 0% | 0% | 11% | 88%
Amazon.QLDB.Driver/result0% | 0% | 0% | 5% | 94%
Amazon.QLDB.Driver.IntegrationTests/utils0% | 0% | 0% | 0% | 100%
Amazon.QLDB.Driver/client0% | 0% | 0% | 0% | 100%
Amazon.QLDB.Driver/transaction0% | 0% | 0% | 0% | 100%
Amazon.QLDB.Driver/utils0% | 0% | 0% | 0% | 100%
Amazon.QLDB.Driver/exception0% | 0% | 0% | 0% | 100%
Amazon.QLDB.Driver/retry0% | 0% | 0% | 0% | 100%
Amazon.QLDB.Driver.Serialization0% | 0% | 0% | 0% | 100%
Amazon.QLDB.Driver/query0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
internal async Task Execute()
in Amazon.QLDB.Driver/session/AsyncQldbSession.cs
68 10 2
internal T Execute()
in Amazon.QLDB.Driver/session/QldbSession.cs
50 10 1
private bool GetIsSessionDeadAndThrowIfNoRetry()
in Amazon.QLDB.Driver/driver/QldbDriverBase.cs
54 8 4
public void Execute_UpdateIonTypes_IonTypesAreUpdated()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
70 7 1
private protected void UpdateMetrics()
in Amazon.QLDB.Driver/result/BaseIonEnumerator.cs
16 6 1
public void Execute_InsertAndReadIonTypes_IonTypesAreInsertedAndRead()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
57 6 1
internal virtual async Task ExecuteStatementAsync()
in Amazon.QLDB.Driver/client/Session.cs
33 5 4
public int Compare()
in Amazon.QLDB.Driver/utils/QldbHash.cs
16 5 2
public void Execute_DropExistingTable_TableDropped()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
41 5 0
internal QldbHash()
in Amazon.QLDB.Driver/utils/QldbHash.cs
8 4 1
public async Task Execute()
in Amazon.QLDB.Driver/driver/AsyncQldbDriver.cs
35 4 3
internal T Execute()
in Amazon.QLDB.Driver/driver/QldbDriver.cs
32 4 3
private protected void PrepareBuild()
in Amazon.QLDB.Driver/driver/BaseQldbDriverBuilder.cs
14 4 0
private protected void SetUserAgent()
in Amazon.QLDB.Driver/driver/BaseQldbDriverBuilder.cs
12 4 2
public async Task ExecuteAsync_ExecutionMetrics()
in Amazon.QLDB.Driver.IntegrationTests/AsyncStatementExecutionTests.cs
37 4 0
public void Execute_DeleteSingleDocument_DocumentIsDeleted()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
51 4 0
public void Execute_DeleteAllDocuments_DocumentsAreDeleted()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
53 4 0
public void Execute_ExecutionMetrics()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
43 4 0
public IAsyncEnumerator GetAsyncEnumerator()
in Amazon.QLDB.Driver/result/generic/AsyncResult.cs
13 3 1
public async ValueTask MoveNextAsync()
in Amazon.QLDB.Driver/result/generic/AsyncResult.cs
13 3 0