apple / swift-corelibs-xctest
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 36 files with 2,888 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (1,215 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (434 lines of code)
    • 29 very small files (1,239 lines of code)
0% | 0% | 42% | 15% | 42%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
swift0% | 0% | 33% | 17% | 49%
py0% | 0% | 100% | 0% | 0%
cmake0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Sources/XCTest/Public0% | 0% | 50% | 9% | 39%
ROOT0% | 0% | 96% | 0% | 3%
Sources/XCTest/Public/Asynchronous0% | 0% | 34% | 27% | 37%
Sources/XCTest/Private0% | 0% | 0% | 20% | 79%
cmake/modules0% | 0% | 0% | 0% | 100%
Longest Files (Top 36)
File# lines# units
build_script.py
in root
409 16
XCTAssert.swift
in Sources/XCTest/Public
320 1
XCTWaiter.swift
in Sources/XCTest/Public/Asynchronous
245 12
XCTestCase.swift
in Sources/XCTest/Public
241 5
XCTestExpectation.swift
in Sources/XCTest/Public/Asynchronous
198 -
PerformanceMeter.swift
in Sources/XCTest/Private
126 8
XCTestRun.swift
in Sources/XCTest/Public
110 4
WaiterManager.swift
in Sources/XCTest/Private
89 6
XCTestMain.swift
in Sources/XCTest/Public
82 -
XCTestCase+Asynchronous.swift
in Sources/XCTest/Public/Asynchronous
80 1
XCTNSPredicateExpectation.swift
in Sources/XCTest/Public/Asynchronous
75 -
XCTSkip.swift
in Sources/XCTest/Public
70 -
TestListing.swift
in Sources/XCTest/Private
69 10
PrintObserver.swift
in Sources/XCTest/Private
68 9
XCTWaiter+Validation.swift
in Sources/XCTest/Public/Asynchronous
62 -
XCTestCase+Performance.swift
in Sources/XCTest/Public
62 -
XCTestObservationCenter.swift
in Sources/XCTest/Public
55 -
XCTNSNotificationExpectation.swift
in Sources/XCTest/Public/Asynchronous
53 -
WallClockTimeMetric.swift
in Sources/XCTest/Private
52 4
TestFiltering.swift
in Sources/XCTest/Private
49 3
cmake
SwiftSupport.cmake
in cmake/modules
40 -
ArgumentParser.swift
in Sources/XCTest/Private
37 1
IgnoredErrors.swift
in Sources/XCTest/Private
32 -
XCTestCaseRun.swift
in Sources/XCTest/Public
32 -
XCTestSuite.swift
in Sources/XCTest/Public
32 -
XCTestSuiteRun.swift
in Sources/XCTest/Public
32 -
XCAbstractTest.swift
in Sources/XCTest/Public
31 -
XCTestCase.TearDownBlocksState.swift
in Sources/XCTest/Private
25 3
SourceLocation.swift
in Sources/XCTest/Private
21 4
XCTestCaseSuite.swift
in Sources/XCTest/Private
18 1
XCTestErrors.swift
in Sources/XCTest/Public
18 -
XCTestObservation.swift
in Sources/XCTest/Public
18 14
Package.swift
in root
16 -
ObjectWrapper.swift
in Sources/XCTest/Private
10 1
XCTestInternalObservation.swift
in Sources/XCTest/Private
8 4
in
XCTestConfig.cmake.in
in cmake/modules
3 -
Files With Most Units (Top 19)
File# lines# units
build_script.py
in root
409 16
XCTestObservation.swift
in Sources/XCTest/Public
18 14
XCTWaiter.swift
in Sources/XCTest/Public/Asynchronous
245 12
TestListing.swift
in Sources/XCTest/Private
69 10
PrintObserver.swift
in Sources/XCTest/Private
68 9
PerformanceMeter.swift
in Sources/XCTest/Private
126 8
WaiterManager.swift
in Sources/XCTest/Private
89 6
XCTestCase.swift
in Sources/XCTest/Public
241 5
SourceLocation.swift
in Sources/XCTest/Private
21 4
WallClockTimeMetric.swift
in Sources/XCTest/Private
52 4
XCTestInternalObservation.swift
in Sources/XCTest/Private
8 4
XCTestRun.swift
in Sources/XCTest/Public
110 4
TestFiltering.swift
in Sources/XCTest/Private
49 3
XCTestCase.TearDownBlocksState.swift
in Sources/XCTest/Private
25 3
ArgumentParser.swift
in Sources/XCTest/Private
37 1
ObjectWrapper.swift
in Sources/XCTest/Private
10 1
XCTestCaseSuite.swift
in Sources/XCTest/Private
18 1
XCTestCase+Asynchronous.swift
in Sources/XCTest/Public/Asynchronous
80 1
XCTAssert.swift
in Sources/XCTest/Public
320 1
Files With Long Lines (Top 19)

There are 19 files with lines longer than 120 characters. In total, there are 107 long lines.

File# lines# units# long lines
XCTAssert.swift
in Sources/XCTest/Public
320 1 27
XCTestCase+Asynchronous.swift
in Sources/XCTest/Public/Asynchronous
80 1 21
XCTWaiter.swift
in Sources/XCTest/Public/Asynchronous
245 12 14
PrintObserver.swift
in Sources/XCTest/Private
68 9 5
XCTestCase+Performance.swift
in Sources/XCTest/Public
62 - 5
WaiterManager.swift
in Sources/XCTest/Private
89 6 4
XCTWaiter+Validation.swift
in Sources/XCTest/Public/Asynchronous
62 - 4
XCTestExpectation.swift
in Sources/XCTest/Public/Asynchronous
198 - 4
XCTestObservationCenter.swift
in Sources/XCTest/Public
55 - 4
XCTestInternalObservation.swift
in Sources/XCTest/Private
8 4 3
XCTNSNotificationExpectation.swift
in Sources/XCTest/Public/Asynchronous
53 - 3
XCTestCase.swift
in Sources/XCTest/Public
241 5 3
WallClockTimeMetric.swift
in Sources/XCTest/Private
52 4 2
XCTestCase.TearDownBlocksState.swift
in Sources/XCTest/Private
25 3 2
XCTestObservation.swift
in Sources/XCTest/Public
18 14 2
PerformanceMeter.swift
in Sources/XCTest/Private
126 8 1
TestFiltering.swift
in Sources/XCTest/Private
49 3 1
XCTestCaseRun.swift
in Sources/XCTest/Public
32 - 1
XCTestRun.swift
in Sources/XCTest/Public
110 4 1