microsoft / TestAdapterForGoogleTest
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 20% duplication:
    • 9,192 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,857 duplicated lines
  • 501 duplicates
system20% (1,857 lines)
Duplication per Extension
vcxproj78% (1,393 lines)
h89% (228 lines)
filters61% (144 lines)
cs<1% (56 lines)
ps15% (24 lines)
vsixmanifest17% (12 lines)
Duplication per Component (primary)
GoogleTestAdapter/FakeGtestDll81% (264 lines)
GoogleTestAdapter/Core8% (249 lines)
GoogleTestAdapter/CrashingExe90% (155 lines)
GoogleTestAdapter/FailingExe91% (155 lines)
SampleTests/LoadTests89% (138 lines)
SampleTests/Tests_1.7.074% (137 lines)
SampleTests/CrashingTests66% (131 lines)
SampleTests/DllDependentProject74% (131 lines)
SampleTests/LibProject64% (106 lines)
SampleTests/DllProject54% (106 lines)
SampleTests/LongRunningTests64% (89 lines)
GoogleTestAdapter/UnicodeNameExe81% (65 lines)
GoogleTestAdapter/GoogleTestProjectTemplate36% (44 lines)
GoogleTestNuGet6% (24 lines)
GoogleTestAdapter/SemaphoreExe45% (16 lines)
GoogleTestAdapter/Packaging.GTA18% (12 lines)
GoogleTestAdapter/Packaging.TAfGT23% (12 lines)
GoogleTestAdapter/TestAdapter1% (9 lines)
GoogleTestAdapter/VsPackage.GTA1% (7 lines)
GoogleTestAdapter/VsPackage.TAfGT20% (7 lines)
ROOT0% (0 lines)
GoogleTestAdapter/Common.Dynamic.GTA0% (0 lines)
GoogleTestAdapter/Common.Dynamic.TAfGT0% (0 lines)
GoogleTestAdapter/Common0% (0 lines)
GoogleTestAdapter/DiaResolver0% (0 lines)
GoogleTestAdapter/GoogleTestItemTemplate0% (0 lines)
GoogleTestAdapter/NewProjectWizard0% (0 lines)
GoogleTestAdapter/SampleTestsBuilder0% (0 lines)
GoogleTestAdapter0% (0 lines)
GoogleTestAdapter/TenSecondsWaiter0% (0 lines)
GoogleTestAdapter/Tests.Common0% (0 lines)
GoogleTestAdapter/VsPackage.Shared0% (0 lines)
SampleTests0% (0 lines)
Tools0% (0 lines)

Duplication Between Components (50+ lines)

G GoogleTestAdapter/CrashingExe GoogleTestAdapter/CrashingExe GoogleTestAdapter/FailingExe GoogleTestAdapter/FailingExe GoogleTestAdapter/CrashingExe--GoogleTestAdapter/FailingExe 310 GoogleTestAdapter/FakeGtestDll GoogleTestAdapter/FakeGtestDll GoogleTestAdapter/CrashingExe--GoogleTestAdapter/FakeGtestDll 198 SampleTests/LibProject SampleTests/LibProject GoogleTestAdapter/CrashingExe--SampleTests/LibProject 160 SampleTests/DllDependentProject SampleTests/DllDependentProject GoogleTestAdapter/CrashingExe--SampleTests/DllDependentProject 154 SampleTests/DllProject SampleTests/DllProject GoogleTestAdapter/CrashingExe--SampleTests/DllProject 134 SampleTests/LoadTests SampleTests/LoadTests GoogleTestAdapter/CrashingExe--SampleTests/LoadTests 106 GoogleTestAdapter/UnicodeNameExe GoogleTestAdapter/UnicodeNameExe GoogleTestAdapter/CrashingExe--GoogleTestAdapter/UnicodeNameExe 105 SampleTests/LongRunningTests SampleTests/LongRunningTests GoogleTestAdapter/CrashingExe--SampleTests/LongRunningTests 104 SampleTests/CrashingTests SampleTests/CrashingTests GoogleTestAdapter/CrashingExe--SampleTests/CrashingTests 90 SampleTests/Tests_1.7.0 SampleTests/Tests_1.7.0 GoogleTestAdapter/CrashingExe--SampleTests/Tests_1.7.0 90 GoogleTestAdapter/FailingExe--GoogleTestAdapter/FakeGtestDll 198 GoogleTestAdapter/FailingExe--SampleTests/LibProject 160 GoogleTestAdapter/FailingExe--SampleTests/DllDependentProject 154 GoogleTestAdapter/FailingExe--SampleTests/DllProject 134 GoogleTestAdapter/FailingExe--SampleTests/LoadTests 106 GoogleTestAdapter/FailingExe--GoogleTestAdapter/UnicodeNameExe 105 GoogleTestAdapter/FailingExe--SampleTests/LongRunningTests 104 GoogleTestAdapter/FailingExe--SampleTests/Tests_1.7.0 90 GoogleTestAdapter/FailingExe--SampleTests/CrashingTests 90 GoogleTestAdapter/FakeGtestDll--GoogleTestAdapter/UnicodeNameExe 260 GoogleTestAdapter/FakeGtestDll--SampleTests/DllProject 198 GoogleTestAdapter/FakeGtestDll--SampleTests/DllDependentProject 196 GoogleTestAdapter/FakeGtestDll--SampleTests/Tests_1.7.0 108 GoogleTestAdapter/FakeGtestDll--SampleTests/LibProject 99 GoogleTestAdapter/FakeGtestDll--SampleTests/LoadTests 78 GoogleTestAdapter/FakeGtestDll--SampleTests/LongRunningTests 78 GoogleTestAdapter/UnicodeNameExe--SampleTests/DllDependentProject 95 GoogleTestAdapter/UnicodeNameExe--SampleTests/DllProject 83 SampleTests/LoadTests--SampleTests/Tests_1.7.0 208 SampleTests/LoadTests--SampleTests/LongRunningTests 126 SampleTests/DllProject--SampleTests/LibProject 90 SampleTests/DllProject--SampleTests/Tests_1.7.0 64 SampleTests/DllProject--SampleTests/LongRunningTests 56 SampleTests/DllProject--SampleTests/LoadTests 56 SampleTests/DllDependentProject--SampleTests/DllProject 166 SampleTests/DllDependentProject--SampleTests/LoadTests 120 SampleTests/DllDependentProject--SampleTests/Tests_1.7.0 108 SampleTests/DllDependentProject--SampleTests/LibProject 62 SampleTests/DllDependentProject--SampleTests/LongRunningTests 56 SampleTests/CrashingTests--SampleTests/LoadTests 194 SampleTests/CrashingTests--SampleTests/Tests_1.7.0 158 SampleTests/CrashingTests--SampleTests/LongRunningTests 116 SampleTests/CrashingTests--SampleTests/LibProject 112 SampleTests/CrashingTests--SampleTests/DllDependentProject 64 SampleTests/CrashingTests--SampleTests/DllProject 52 SampleTests/LibProject--SampleTests/Tests_1.7.0 108 SampleTests/LibProject--SampleTests/LoadTests 98 SampleTests/LibProject--SampleTests/LongRunningTests 96 SampleTests/LongRunningTests--SampleTests/Tests_1.7.0 94

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 501 duplicates...
Size#FoldersFilesLinesCode
117 x 2 GoogleTestAdapter/CrashingExe
GoogleTestAdapter/FailingExe
vcxproj
CrashingExe.vcxproj
FailingExe.vcxproj
25:174 (83%)
25:174 (83%)
view
41 x 2 GoogleTestAdapter/Core/Resources
GoogleTestAdapter/Core/Resources
GTA_Traits_1.7.0.h
GTA_Traits_1.8.0.h
6:84 (34%)
6:84 (33%)
view
34 x 2 GoogleTestAdapter/FakeGtestDll
GoogleTestAdapter/UnicodeNameExe
vcxproj
FakeGtestDllApplication.vcxproj
UnicodeNameExe.vcxproj
17:57 (44%)
17:57 (45%)
view
32 x 2 GoogleTestAdapter/CrashingExe
SampleTests/DllDependentProject
vcxproj
CrashingExe.vcxproj
DllDependentProject.vcxproj
27:60 (22%)
29:62 (21%)
view
32 x 2 SampleTests/CrashingTests
SampleTests/Tests_1.7.0
vcxproj
CrashingTests.vcxproj
Tests_1.7.0.vcxproj
28:64 (21%)
28:64 (21%)
view
32 x 2 GoogleTestAdapter/FailingExe
SampleTests/DllDependentProject
vcxproj
FailingExe.vcxproj
DllDependentProject.vcxproj
27:60 (22%)
29:62 (21%)
view
31 x 2 GoogleTestAdapter/Core/Resources
GoogleTestAdapter/Core/Resources
GTA_Traits_1.7.0.h
GTA_Traits_1.8.0.h
119:160 (25%)
123:164 (25%)
view
26 x 2 SampleTests/CrashingTests
SampleTests/LoadTests
vcxproj
CrashingTests.vcxproj
LoadTests.vcxproj
67:101 (17%)
65:99 (19%)
view
24 x 2 GoogleTestAdapter/FakeGtestDll
SampleTests/DllProject
vcxproj
FakeGtestDllLibrary.vcxproj
DllProject.vcxproj
17:42 (32%)
26:51 (16%)
view
24 x 2 GoogleTestAdapter/FakeGtestDll
SampleTests/DllDependentProject
vcxproj
FakeGtestDllApplication-x64.vcxproj
DllDependentProject.vcxproj
21:47 (31%)
54:80 (15%)
view
24 x 2 GoogleTestAdapter/CrashingExe
GoogleTestAdapter/FakeGtestDll
vcxproj
CrashingExe.vcxproj
FakeGtestDllApplication.vcxproj
25:50 (17%)
17:42 (31%)
view
24 x 2 GoogleTestAdapter/FailingExe
GoogleTestAdapter/FakeGtestDll
vcxproj
FailingExe.vcxproj
FakeGtestDllApplication.vcxproj
25:50 (17%)
17:42 (31%)
view
24 x 2 GoogleTestAdapter/FailingExe
GoogleTestAdapter/UnicodeNameExe
vcxproj
FailingExe.vcxproj
UnicodeNameExe.vcxproj
25:50 (17%)
17:42 (32%)
view
24 x 2 GoogleTestAdapter/FakeGtestDll
SampleTests/DllProject
vcxproj
FakeGtestDllLibrary-x64.vcxproj
DllProject.vcxproj
21:47 (32%)
53:79 (16%)
view
24 x 2 GoogleTestAdapter/CrashingExe
GoogleTestAdapter/UnicodeNameExe
vcxproj
CrashingExe.vcxproj
UnicodeNameExe.vcxproj
25:50 (17%)
17:42 (32%)
view
23 x 2 GoogleTestAdapter/UnicodeNameExe
SampleTests/DllDependentProject
vcxproj
UnicodeNameExe.vcxproj
DllDependentProject.vcxproj
19:42 (30%)
29:52 (15%)
view
23 x 2 SampleTests/DllDependentProject
SampleTests/DllProject
vcxproj
DllDependentProject.vcxproj
DllProject.vcxproj
67:96 (15%)
66:95 (15%)
view
23 x 2 GoogleTestAdapter/FakeGtestDll
SampleTests/DllDependentProject
vcxproj
FakeGtestDllApplication.vcxproj
DllDependentProject.vcxproj
19:42 (30%)
29:52 (15%)
view
22 x 2 GoogleTestAdapter/CrashingExe
GoogleTestAdapter/FailingExe
filters
CrashingExe.vcxproj.filters
FailingExe.vcxproj.filters
1:30 (91%)
1:30 (91%)
view
22 x 2 GoogleTestAdapter/FailingExe
SampleTests/LibProject
vcxproj
FailingExe.vcxproj
LibProject.vcxproj
73:104 (15%)
63:94 (16%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
22 x 2 GoogleTestAdapter/Core/Resources
GoogleTestAdapter/Core/Resources
GTA_Traits_1.7.0.h
GTA_Traits_1.8.0.h
124:154 
128:158 
view
18 x 2 GoogleTestAdapter/Core/Resources
GoogleTestAdapter/Core/Resources
GTA_Traits_1.7.0.h
GTA_Traits_1.8.0.h
163:183 
168:188 
view
11 x 2 GoogleTestAdapter/Core/Resources
GoogleTestAdapter/Core/Resources
GTA_Traits_1.7.0.h
GTA_Traits_1.8.0.h
99:113 
102:116 
view