We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 521dc68 commit ead64bcCopy full SHA for ead64bc
Sources/XCTestDynamicOverlay/XCTIsTesting.swift
@@ -1,11 +1,11 @@
1
import Foundation
2
3
#if !os(WASI)
4
-public let _XCTIsTesting: Bool = {
5
- ProcessInfo.processInfo.environment.keys.contains("XCTestSessionIdentifier")
6
- || ProcessInfo.processInfo.arguments.first
7
- .flatMap(URL.init(fileURLWithPath:))
8
- .map { $0.lastPathComponent == "xctest" || $0.pathExtension == "xctest" }
9
- ?? false
10
-}()
+ public let _XCTIsTesting: Bool = {
+ ProcessInfo.processInfo.environment.keys.contains("XCTestSessionIdentifier")
+ || ProcessInfo.processInfo.arguments.first
+ .flatMap(URL.init(fileURLWithPath:))
+ .map { $0.lastPathComponent == "xctest" || $0.pathExtension == "xctest" }
+ ?? false
+ }()
11
#endif
0 commit comments