awslabs / amazon-qldb-driver-dotnet
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 266 units with 3,161 lines of code in units (74.7% of code).
    • 1 very long units (136 lines of code)
    • 6 long units (353 lines of code)
    • 29 medium size units (924 lines of code)
    • 51 small units (740 lines of code)
    • 179 very small units (1,008 lines of code)
4% | 11% | 29% | 23% | 31%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs4% | 11% | 29% | 23% | 31%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Amazon.QLDB.Driver.IntegrationTests/utils41% | 0% | 15% | 19% | 23%
Amazon.QLDB.Driver.IntegrationTests0% | 19% | 52% | 17% | 10%
Amazon.QLDB.Driver/session0% | 35% | 25% | 20% | 18%
Amazon.QLDB.Driver/driver0% | 11% | 30% | 21% | 36%
Amazon.QLDB.Driver/client0% | 0% | 25% | 40% | 33%
Amazon.QLDB.Driver/result0% | 0% | 0% | 38% | 61%
Amazon.QLDB.Driver/transaction0% | 0% | 0% | 44% | 55%
Amazon.QLDB.Driver/utils0% | 0% | 0% | 29% | 70%
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%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public IEnumerable GetData()
in Amazon.QLDB.Driver.IntegrationTests/utils/IntegrationTestBase.cs
136 1 1
public void Execute_UpdateIonTypes_IonTypesAreUpdated()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
70 7 1
internal async Task Execute()
in Amazon.QLDB.Driver/session/AsyncQldbSession.cs
68 10 2
public void Execute_InsertAndReadIonTypes_IonTypesAreInsertedAndRead()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
57 6 1
private bool GetIsSessionDeadAndThrowIfNoRetry()
in Amazon.QLDB.Driver/driver/QldbDriverBase.cs
54 8 4
public void Execute_DeleteAllDocuments_DocumentsAreDeleted()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
53 4 0
public void Execute_DeleteSingleDocument_DocumentIsDeleted()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
51 4 0
internal T Execute()
in Amazon.QLDB.Driver/session/QldbSession.cs
50 10 1
public void Execute_InsertDocumentWithMultipleFields_DocumentIsInserted()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
43 3 0
public void Execute_ExecutionMetrics()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
43 4 0
public void Execute_DropExistingTable_TableDropped()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
41 5 0
public void Execute_UpdateSameRecordAtSameTime_ThrowsOccException()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
41 3 0
public void Execute_InsertMultipleDocuments_DocumentsInserted()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
40 3 0
public async Task ExecuteAsync_ExecutionMetrics()
in Amazon.QLDB.Driver.IntegrationTests/AsyncStatementExecutionTests.cs
37 4 0
public async Task Execute()
in Amazon.QLDB.Driver/driver/AsyncQldbDriver.cs
35 4 3
public void Execute_CreateIndex_IndexIsCreated()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
34 3 0
public void Execute_InsertDocument_DocumentIsInserted()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
34 3 0
public void Execute_QuerySingleField_ReturnsSingleField()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
34 3 0
public void Execute_QueryTableEnclosedInQuotes_ReturnsResult()
in Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
34 3 0
internal virtual async Task ExecuteStatementAsync()
in Amazon.QLDB.Driver/client/Session.cs
33 5 4