Skip to content

Commit 8dd42b1

Browse files
committed
Rename non-idiomatic 'get' functions to follow Swift conventions and simplify Swift file detection logic
1 parent 8df34ba commit 8dd42b1

File tree

2 files changed

+249
-126
lines changed

2 files changed

+249
-126
lines changed

Sources/Testing/ABI/EntryPoints/EntryPoint.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ func entryPoint(passing args: __CommandLineArguments_v0?, eventHandler: Event.Ha
5858
if Environment.flag(named: "SWT_ENABLE_EXPERIMENTAL_CONSOLE_OUTPUT") == true {
5959
// Use experimental AdvancedConsoleOutputRecorder
6060
var advancedOptions = Event.AdvancedConsoleOutputRecorder<ABI.HighestVersion>.Options()
61-
advancedOptions.base = Event.ConsoleOutputRecorder.Options.for(.stderr)
61+
advancedOptions.base = .for(.stderr)
6262
let eventRecorder = Event.AdvancedConsoleOutputRecorder<ABI.HighestVersion>(options: advancedOptions) { string in
6363
try? FileHandle.stderr.write(string)
6464
}
65-
65+
6666
configuration.eventHandler = { [oldEventHandler = configuration.eventHandler] event, context in
6767
eventRecorder.record(event, in: context)
6868
oldEventHandler(event, context)
@@ -626,7 +626,7 @@ public func configurationForEntryPoint(from args: __CommandLineArguments_v0) thr
626626
configuration.exitTestHandler = ExitTest.handlerForEntryPoint()
627627
#endif
628628

629-
// Warning issues (experimental).
629+
// Warning issues (experimental).
630630
switch args.eventStreamVersionNumber {
631631
case .some(..<ABI.v6_3.versionNumber):
632632
// If the event stream version was explicitly specified to a value < 6.3,

0 commit comments

Comments
 (0)