microsoft / TestAdapterForGoogleTest
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 527 units with 5,860 lines of code in units (42.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (275 lines of code)
    • 21 simple units (747 lines of code)
    • 502 very simple units (4,838 lines of code)
0% | 0% | 4% | 12% | 82%
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% | 4% | 13% | 81%
h0% | 0% | 0% | 0% | 100%
cpp0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
GoogleTestAdapter/Core0% | 0% | 3% | 16% | 79%
GoogleTestAdapter/NewProjectWizard0% | 0% | 40% | 0% | 59%
GoogleTestAdapter/VsPackage.GTA0% | 0% | 16% | 0% | 83%
GoogleTestAdapter/TestAdapter0% | 0% | 0% | 11% | 88%
GoogleTestAdapter/Tests.Common0% | 0% | 0% | 13% | 86%
GoogleTestAdapter/VsPackage.Shared0% | 0% | 0% | 14% | 85%
GoogleTestAdapter/DiaResolver0% | 0% | 0% | 9% | 90%
GoogleTestAdapter/Common0% | 0% | 0% | 0% | 100%
SampleTests/DllProject0% | 0% | 0% | 0% | 100%
GoogleTestAdapter/TenSecondsWaiter0% | 0% | 0% | 0% | 100%
GoogleTestAdapter/CrashingExe0% | 0% | 0% | 0% | 100%
GoogleTestAdapter/FailingExe0% | 0% | 0% | 0% | 100%
GoogleTestAdapter/SemaphoreExe0% | 0% | 0% | 0% | 100%
GoogleTestAdapter/FakeGtestDll0% | 0% | 0% | 0% | 100%
SampleTests/LibProject0% | 0% | 0% | 0% | 100%
GoogleTestAdapter/UnicodeNameExe0% | 0% | 0% | 0% | 100%
GoogleTestAdapter/VsPackage.TAfGT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public void RunStarted()
in GoogleTestAdapter/NewProjectWizard/WizardImplementation.cs
102 15 4
private TestResult CreateTestResult()
in GoogleTestAdapter/Core/TestResults/StreamingStandardOutputTestResultParser.cs
62 14 0
public override void Register()
in GoogleTestAdapter/VsPackage.GTA/AsyncPackage/AsyncPackageRegistrationAttribute.cs
69 14 1
private TestResult CreateTestResult()
in GoogleTestAdapter/Core/TestResults/StandardOutputTestResultParser.cs
42 11 1
private string FindPdbFile()
in GoogleTestAdapter/DiaResolver/DiaResolver.cs
32 10 2
private List RunTestExecutableWithNewFramework()
in GoogleTestAdapter/Core/Runners/SequentialTestRunner.cs
41 9 6
public IList CreateTestCases()
in GoogleTestAdapter/Core/TestCases/TestCaseFactory.cs
47 9 1
public List GetTestResults()
in GoogleTestAdapter/Core/TestResults/StandardOutputTestResultParser.cs
13 9 0
public static int Year()
in GoogleTestAdapter/TestAdapter/Framework/VsVersion.cs
23 9 1
private int LaunchProcess()
in GoogleTestAdapter/Core/Helpers/ProcessLauncher.cs
50 8 7
private IList NewCreateTestcases()
in GoogleTestAdapter/Core/TestCases/TestCaseFactory.cs
82 8 2
public void ReportTestResults()
in GoogleTestAdapter/TestAdapter/Framework/VSTestFrameworkReporter.cs
21 8 1
public IXPathNavigable AddRunSettings()
in GoogleTestAdapter/VsPackage.Shared/Settings/RunSettingsService.cs
59 8 3
private static StringBuilder CreateEnvironment()
in GoogleTestAdapter/Core/Helpers/ProcessExecutor.cs
32 7 2
public void RunTests()
in GoogleTestAdapter/Core/Runners/SequentialTestRunner.cs
54 7 7
private void RunTestsFromExecutable()
in GoogleTestAdapter/Core/Runners/SequentialTestRunner.cs
37 7 8
public void RunTestsAndCheckOutput()
in GoogleTestAdapter/Tests.Common/ResultChecker/TrxResultChecker.cs
38 7 3
public static bool IsGoogleTestExecutable()
in GoogleTestAdapter/Core/GoogleTestDiscoverer.cs
29 6 3
private ITestsSplitter GetTestsSplitter()
in GoogleTestAdapter/Core/Runners/ParallelTestRunner.cs
30 6 1
public List CollectTestResults()
in GoogleTestAdapter/Core/Runners/TestResultCollector.cs
23 6 4