@swiftbrowser/wasm-sdk-testing 0.0.0-stage → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/LICENSE.txt +1445 -0
  2. package/README.md +24 -2
  3. package/files.json +20 -0
  4. package/package.json +18 -4
  5. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/AppKit.swiftoverlay +3 -0
  6. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/CoreGraphics.swiftoverlay +3 -0
  7. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/CoreImage.swiftoverlay +3 -0
  8. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/CoreTransferable.swiftoverlay +3 -0
  9. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/Foundation.swiftoverlay +3 -0
  10. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/UIKit.swiftoverlay +3 -0
  11. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftcrossimport/WinSDK.swiftoverlay +3 -0
  12. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Testing.swiftmodule/wasm32-unknown-wasip1.swiftinterface +1043 -0
  13. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/XCTest.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  14. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_TestDiscovery.swiftmodule/wasm32-unknown-wasip1.swiftinterface +8 -0
  15. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_TestingInterop.swiftmodule/wasm32-unknown-wasip1.swiftinterface +28 -0
  16. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Testing_Foundation.swiftmodule/wasm32-unknown-wasip1.swiftinterface +41 -0
  17. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libTesting.a +0 -0
  18. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libXCTest.a +0 -0
  19. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_TestDiscovery.a +0 -0
  20. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_TestingInternals.a +0 -0
  21. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_TestingInterop.a +0 -0
  22. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_Testing_Foundation.a +0 -0
@@ -0,0 +1,1043 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Swift version 6.4 (swift-6.4-RELEASE)
3
+ // swift-module-flags: -target wasm32-unknown-wasip1 -disable-objc-interop -enable-library-evolution -module-link-name Testing -module-abi-name Testing -static -language-mode 6 -O -enable-experimental-feature AccessLevelOnImport -enable-experimental-feature Lifetimes -enable-upcoming-feature ExistentialAny -enable-upcoming-feature InternalImportsByDefault -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InferIsolatedConformances -public-autolink-library _TestDiscovery -public-autolink-library _TestingInternals -public-autolink-library _TestingInterop -module-name Testing -package-name org.swift.testing
4
+ // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.4
5
+ public import Swift
6
+ public import _Concurrency
7
+ public import _StringProcessing
8
+ public import _SwiftConcurrencyShims
9
+ #if compiler(>=5.3) && hasAttribute(c)
10
+ @c(swt_abiv0_getEntryPoint)
11
+ @usableFromInline
12
+ internal func abiv0_getEntryPoint() -> Swift::UnsafeRawPointer
13
+ #else
14
+ @_cdecl("swt_abiv0_getEntryPoint")
15
+ @usableFromInline
16
+ internal func abiv0_getEntryPoint() -> Swift::UnsafeRawPointer
17
+ #endif
18
+ public struct __CommandLineArguments_v0 : Swift::Sendable {
19
+ public init()
20
+ public var listTests: Swift::Bool?
21
+ public var parallel: Swift::Bool?
22
+ public var experimentalMaximumParallelizationWidth: Swift::Int?
23
+ public var symbolicateBacktraces: Swift::String?
24
+ public var verbose: Swift::Bool?
25
+ public var veryVerbose: Swift::Bool?
26
+ public var quiet: Swift::Bool?
27
+ public var verbosity: Swift::Int {
28
+ get
29
+ set
30
+ }
31
+ public var xunitOutput: Swift::String?
32
+ public var eventStreamOutputPath: Swift::String?
33
+ public var eventStreamSchemaVersion: Swift::String? {
34
+ get
35
+ set
36
+ }
37
+ public var filter: [Swift::String]?
38
+ public var skip: [Swift::String]?
39
+ public var repetitions: Swift::Int?
40
+ public var repeatUntil: Swift::String?
41
+ public var attachmentsPath: Swift::String?
42
+ }
43
+ extension Testing::__CommandLineArguments_v0 : Swift::Codable {
44
+ public func encode(to encoder: any Swift::Encoder) throws
45
+ public init(from decoder: any Swift::Decoder) throws
46
+ }
47
+ extension Testing::__CommandLineArguments_v0 {
48
+ @available(*, deprecated, message: "Use eventStreamSchemaVersion instead.")
49
+ public var eventStreamVersion: Swift::Int? {
50
+ get
51
+ set
52
+ }
53
+ }
54
+ public func __swiftPMEntryPoint(passing args: Testing::__CommandLineArguments_v0? = nil) async -> Swift::CInt
55
+ public func __swiftPMEntryPoint(passing args: Testing::__CommandLineArguments_v0? = nil) async -> Swift::Never
56
+ #if compiler(>=5.3) && hasAttribute(c)
57
+ @c
58
+ @usableFromInline
59
+ internal func _swift_testing_copyMetadataValue(_ key: Swift::UnsafePointer<Swift::CChar>, _ reserved: Swift::UInt) -> Swift::UnsafeMutablePointer<Swift::CChar>?
60
+ #else
61
+ @_cdecl("_swift_testing_copyMetadataValue")
62
+ @usableFromInline
63
+ internal func _swift_testing_copyMetadataValue(_ key: Swift::UnsafePointer<Swift::CChar>, _ reserved: Swift::UInt) -> Swift::UnsafeMutablePointer<Swift::CChar>?
64
+ #endif
65
+ @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
66
+ @available(*, unavailable, message: "Image attachments are not available on this platform.")
67
+ public protocol AttachableAsImage {
68
+ borrowing func withUnsafeBytes<R>(as imageFormat: Testing::AttachableImageFormat, _ body: (Swift::UnsafeRawBufferPointer) throws -> R) throws -> R
69
+ func _copyAttachableValue() -> Self
70
+ func _deinitializeAttachableValue()
71
+ }
72
+ @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
73
+ @available(*, unavailable, message: "Image attachments are not available on this platform.")
74
+ extension Testing::AttachableAsImage {
75
+ public func _copyAttachableValue() -> Self
76
+ public func _deinitializeAttachableValue()
77
+ }
78
+ @_hasMissingDesignatedInitializers @available(*, unavailable, message: "Image attachments are not available on this platform.")
79
+ final public class _AttachableImageWrapper<Image> : Swift::Sendable where Image : Testing::AttachableAsImage {
80
+ nonisolated(unsafe) final public let wrappedValue: Image
81
+ deinit
82
+ }
83
+ @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
84
+ @available(*, unavailable, message: "Image attachments are not available on this platform.")
85
+ public struct AttachableImageFormat : Swift::Sendable {
86
+ public var encodingQuality: Swift::Float {
87
+ get
88
+ }
89
+ }
90
+ @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
91
+ @available(*, unavailable, message: "Image attachments are not available on this platform.")
92
+ extension Testing::AttachableImageFormat : Swift::Equatable, Swift::Hashable {
93
+ public static func == (a: Testing::AttachableImageFormat, b: Testing::AttachableImageFormat) -> Swift::Bool
94
+ public func hash(into hasher: inout Swift::Hasher)
95
+ public var hashValue: Swift::Int {
96
+ get
97
+ }
98
+ }
99
+ @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
100
+ @available(*, unavailable, message: "Image attachments are not available on this platform.")
101
+ extension Testing::AttachableImageFormat : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible {
102
+ public var description: Swift::String {
103
+ get
104
+ }
105
+ public var debugDescription: Swift::String {
106
+ get
107
+ }
108
+ }
109
+ @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
110
+ @available(*, unavailable, message: "Image attachments are not available on this platform.")
111
+ extension Testing::AttachableImageFormat {
112
+ public static var png: Testing::AttachableImageFormat {
113
+ get
114
+ }
115
+ public static var jpeg: Testing::AttachableImageFormat {
116
+ get
117
+ }
118
+ public static func jpeg(withEncodingQuality encodingQuality: Swift::Float) -> Testing::AttachableImageFormat
119
+ }
120
+ @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
121
+ @available(*, unavailable, message: "Image attachments are not available on this platform.")
122
+ extension Testing::Attachment {
123
+ public init<T>(_ image: T, named preferredName: Swift::String? = nil, as imageFormat: Testing::AttachableImageFormat? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) where AttachableValue : Testing::_AttachableImageWrapper<T>, AttachableValue : Testing::AttachableWrapper, T : Testing::AttachableAsImage
124
+ public static func record<T>(_ image: T, named preferredName: Swift::String? = nil, as imageFormat: Testing::AttachableImageFormat? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) where AttachableValue : Testing::_AttachableImageWrapper<T>, AttachableValue : Testing::AttachableWrapper, T : Testing::AttachableAsImage
125
+ }
126
+ @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
127
+ @available(*, unavailable, message: "Image attachments are not available on this platform.")
128
+ extension Testing::Attachment where AttachableValue : Testing::AttachableWrapper, AttachableValue.Wrapped : Testing::AttachableAsImage {
129
+ @_disfavoredOverload public var imageFormat: Testing::AttachableImageFormat? {
130
+ get
131
+ }
132
+ }
133
+ public protocol Attachable : ~Copyable {
134
+ var estimatedAttachmentByteCount: Swift::Int? { get }
135
+ borrowing func withUnsafeBytes<R>(for attachment: borrowing Testing::Attachment<Self>, _ body: (Swift::UnsafeRawBufferPointer) throws -> R) throws -> R
136
+ borrowing func preferredName(for attachment: borrowing Testing::Attachment<Self>, basedOn suggestedName: Swift::String) -> Swift::String
137
+ }
138
+ extension Testing::Attachable where Self : ~Copyable {
139
+ public var estimatedAttachmentByteCount: Swift::Int? {
140
+ get
141
+ }
142
+ public borrowing func preferredName(for attachment: borrowing Testing::Attachment<Self>, basedOn suggestedName: Swift::String) -> Swift::String
143
+ }
144
+ extension Testing::Attachable where Self : Swift::Collection, Self.Element == Swift::UInt8 {
145
+ public var estimatedAttachmentByteCount: Swift::Int? {
146
+ get
147
+ }
148
+ }
149
+ extension Testing::Attachable where Self : Swift::StringProtocol {
150
+ public var estimatedAttachmentByteCount: Swift::Int? {
151
+ get
152
+ }
153
+ public borrowing func preferredName(for attachment: borrowing Testing::Attachment<Self>, basedOn suggestedName: Swift::String) -> Swift::String
154
+ }
155
+ extension Swift::Array : Testing::Attachable where Element == Swift::UInt8 {
156
+ public func withUnsafeBytes<R>(for attachment: borrowing Testing::Attachment<Swift::Array<Element>>, _ body: (Swift::UnsafeRawBufferPointer) throws -> R) throws -> R
157
+ }
158
+ extension Swift::ContiguousArray : Testing::Attachable where Element == Swift::UInt8 {
159
+ public func withUnsafeBytes<R>(for attachment: borrowing Testing::Attachment<Swift::ContiguousArray<Element>>, _ body: (Swift::UnsafeRawBufferPointer) throws -> R) throws -> R
160
+ }
161
+ extension Swift::ArraySlice : Testing::Attachable where Element == Swift::UInt8 {
162
+ public func withUnsafeBytes<R>(for attachment: borrowing Testing::Attachment<Swift::ArraySlice<Element>>, _ body: (Swift::UnsafeRawBufferPointer) throws -> R) throws -> R
163
+ }
164
+ extension Swift::String : Testing::Attachable {
165
+ public func withUnsafeBytes<R>(for attachment: borrowing Testing::Attachment<Swift::String>, _ body: (Swift::UnsafeRawBufferPointer) throws -> R) throws -> R
166
+ }
167
+ extension Swift::Substring : Testing::Attachable {
168
+ public func withUnsafeBytes<R>(for attachment: borrowing Testing::Attachment<Swift::Substring>, _ body: (Swift::UnsafeRawBufferPointer) throws -> R) throws -> R
169
+ }
170
+ public protocol AttachableWrapper<Wrapped> : Testing::Attachable, ~Copyable {
171
+ associatedtype Wrapped
172
+ var wrappedValue: Self.Wrapped { get }
173
+ }
174
+ public struct Attachment<AttachableValue> where AttachableValue : Testing::Attachable, AttachableValue : ~Copyable {
175
+ public var preferredName: Swift::String {
176
+ get
177
+ }
178
+ }
179
+ extension Testing::Attachment : Swift::Sendable where AttachableValue : Swift::Sendable, AttachableValue : ~Copyable {
180
+ }
181
+ extension Testing::Attachment where AttachableValue : ~Copyable {
182
+ public init(_ attachableValue: consuming AttachableValue, named preferredName: Swift::String? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation)
183
+ }
184
+ extension Testing::Attachment : Swift::CustomStringConvertible where AttachableValue : ~Copyable {
185
+ public var description: Swift::String {
186
+ get
187
+ }
188
+ }
189
+ extension Testing::Attachment where AttachableValue : ~Copyable {
190
+ @_disfavoredOverload public var attachableValue: AttachableValue {
191
+ _read
192
+ }
193
+ }
194
+ extension Testing::Attachment where AttachableValue : Testing::AttachableWrapper, AttachableValue : ~Copyable {
195
+ public var attachableValue: AttachableValue.Wrapped {
196
+ _read
197
+ }
198
+ }
199
+ extension Testing::Attachment where AttachableValue : Swift::Sendable, AttachableValue : ~Copyable {
200
+ @_documentation(visibility: private) public static func record(_ attachment: consuming Testing::Attachment<AttachableValue>, sourceLocation: Testing::SourceLocation = #_sourceLocation)
201
+ @_documentation(visibility: private) public static func record(_ attachableValue: consuming AttachableValue, named preferredName: Swift::String? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation)
202
+ }
203
+ extension Testing::Attachment where AttachableValue : ~Copyable {
204
+ public static func record(_ attachment: consuming Testing::Attachment<AttachableValue>, sourceLocation: Testing::SourceLocation = #_sourceLocation)
205
+ public static func record(_ attachableValue: consuming AttachableValue, named preferredName: Swift::String? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation)
206
+ }
207
+ extension Testing::Attachment where AttachableValue : ~Copyable {
208
+ @inlinable public borrowing func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) throws -> R {
209
+ try attachableValue.withUnsafeBytes(for: self, body)
210
+ }
211
+ }
212
+ @available(*, unavailable, message: "Exit tests are not available on this platform.")
213
+ public struct ExitTest : Swift::Sendable, ~Swift::Copyable {
214
+ }
215
+ @available(*, unavailable, message: "Exit tests are not available on this platform.")
216
+ extension Testing::ExitTest {
217
+ public struct Condition : Swift::Sendable {
218
+ }
219
+ }
220
+ @available(*, unavailable, message: "Exit tests are not available on this platform.")
221
+ extension Testing::ExitTest.Testing::Condition {
222
+ public static var success: Testing::ExitTest.Testing::Condition {
223
+ get
224
+ }
225
+ public static var failure: Testing::ExitTest.Testing::Condition {
226
+ get
227
+ }
228
+ public init(_ exitStatus: Testing::ExitStatus)
229
+ public static func exitCode(_ exitCode: Swift::CInt) -> Testing::ExitTest.Testing::Condition
230
+ public static func signal(_ signal: Swift::CInt) -> Testing::ExitTest.Testing::Condition
231
+ }
232
+ @available(*, unavailable, message: "Exit tests are not available on this platform.")
233
+ extension Testing::ExitTest.Testing::Condition : Swift::CustomStringConvertible {
234
+ public var description: Swift::String {
235
+ get
236
+ }
237
+ }
238
+ @available(*, unavailable, message: "Exit tests are not available on this platform.")
239
+ extension Testing::ExitTest {
240
+ public struct Result : Swift::Sendable {
241
+ public var exitStatus: Testing::ExitStatus
242
+ public var standardOutputContent: [Swift::UInt8]
243
+ public var standardErrorContent: [Swift::UInt8]
244
+ }
245
+ }
246
+ @available(*, unavailable, message: "Exit tests are not available on this platform.")
247
+ public enum ExitStatus : Swift::Sendable {
248
+ case exitCode(_: Swift::CInt)
249
+ case signal(_: Swift::CInt)
250
+ }
251
+ @available(*, unavailable, message: "Exit tests are not available on this platform.")
252
+ extension Testing::ExitStatus : Swift::Equatable {
253
+ public static func == (a: Testing::ExitStatus, b: Testing::ExitStatus) -> Swift::Bool
254
+ }
255
+ @available(*, unavailable, message: "Exit tests are not available on this platform.")
256
+ extension Testing::ExitStatus : Swift::CustomStringConvertible {
257
+ public var description: Swift::String {
258
+ get
259
+ }
260
+ }
261
+ public struct Expectation : Swift::Sendable {
262
+ public var isPassing: Swift::Bool
263
+ public var isRequired: Swift::Bool
264
+ public var sourceLocation: Testing::SourceLocation
265
+ }
266
+ public struct ExpectationFailedError : Swift::Error {
267
+ public var expectation: Testing::Expectation
268
+ }
269
+ @freestanding(expression) public macro expect(_ condition: Swift::Bool, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "ExpectMacro")
270
+ @freestanding(expression) public macro require(_ condition: Swift::Bool, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) = #externalMacro(module: "TestingMacros", type: "RequireMacro")
271
+ @freestanding(expression) public macro require<T>(_ optionalValue: T?, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) -> T = #externalMacro(module: "TestingMacros", type: "RequireMacro")
272
+ @freestanding(expression) @_documentation(visibility: private) public macro require(_ optionalValue: Swift::Bool?, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) -> Swift::Bool = #externalMacro(module: "TestingMacros", type: "AmbiguousRequireMacro")
273
+ @freestanding(expression) @_documentation(visibility: private) public macro require<T>(_ optionalValue: T, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) -> T = #externalMacro(module: "TestingMacros", type: "NonOptionalRequireMacro")
274
+ @discardableResult
275
+ @freestanding(expression) @_documentation(visibility: private) public macro expect<E, R>(throws errorType: E.Type, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () throws -> R) -> E? = #externalMacro(module: "TestingMacros", type: "ExpectThrowsMacro") where E : Swift::Error
276
+ @discardableResult
277
+ @freestanding(expression) public macro expect<E, R>(throws errorType: E.Type, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () async throws -> R) -> E? = #externalMacro(module: "TestingMacros", type: "ExpectThrowsMacro") where E : Swift::Error
278
+ @discardableResult
279
+ @freestanding(expression) @_documentation(visibility: private) public macro require<E, R>(throws errorType: E.Type, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () throws -> R) -> E = #externalMacro(module: "TestingMacros", type: "RequireThrowsMacro") where E : Swift::Error
280
+ @discardableResult
281
+ @freestanding(expression) public macro require<E, R>(throws errorType: E.Type, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () async throws -> R) -> E = #externalMacro(module: "TestingMacros", type: "RequireThrowsMacro") where E : Swift::Error
282
+ @freestanding(expression) @_documentation(visibility: private) public macro require<R>(throws _: Swift::Never.Type, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () throws -> R) = #externalMacro(module: "TestingMacros", type: "RequireThrowsNeverMacro")
283
+ @freestanding(expression) @_documentation(visibility: private) public macro require<R>(throws _: Swift::Never.Type, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () async throws -> R) = #externalMacro(module: "TestingMacros", type: "RequireThrowsNeverMacro")
284
+ @discardableResult
285
+ @freestanding(expression) @_documentation(visibility: private) public macro expect<E, R>(throws error: E, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () throws -> R) -> E? = #externalMacro(module: "TestingMacros", type: "ExpectThrowsMacro") where E : Swift::Equatable, E : Swift::Error
286
+ @discardableResult
287
+ @freestanding(expression) public macro expect<E, R>(throws error: E, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () async throws -> R) -> E? = #externalMacro(module: "TestingMacros", type: "ExpectThrowsMacro") where E : Swift::Equatable, E : Swift::Error
288
+ @discardableResult
289
+ @freestanding(expression) @_documentation(visibility: private) public macro require<E, R>(throws error: E, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () throws -> R) -> E = #externalMacro(module: "TestingMacros", type: "RequireThrowsMacro") where E : Swift::Equatable, E : Swift::Error
290
+ @discardableResult
291
+ @freestanding(expression) public macro require<E, R>(throws error: E, _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () async throws -> R) -> E = #externalMacro(module: "TestingMacros", type: "RequireThrowsMacro") where E : Swift::Equatable, E : Swift::Error
292
+ @available(swift, deprecated: 100000.0, message: "Examine the result of '#expect(throws:)' instead.")
293
+ @discardableResult
294
+ @freestanding(expression) @_documentation(visibility: private) public macro expect<R>(_ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () throws -> R, throws errorMatcher: (any Swift::Error) throws -> Swift::Bool) -> (any Swift::Error)? = #externalMacro(module: "TestingMacros", type: "ExpectThrowsMacro")
295
+ @available(swift, deprecated: 100000.0, message: "Examine the result of '#expect(throws:)' instead.")
296
+ @discardableResult
297
+ @freestanding(expression) public macro expect<R>(_ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () async throws -> R, throws errorMatcher: (any Swift::Error) async throws -> Swift::Bool) -> (any Swift::Error)? = #externalMacro(module: "TestingMacros", type: "ExpectThrowsMacro")
298
+ @available(swift, deprecated: 100000.0, message: "Examine the result of '#require(throws:)' instead.")
299
+ @discardableResult
300
+ @freestanding(expression) @_documentation(visibility: private) public macro require<R>(_ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () throws -> R, throws errorMatcher: (any Swift::Error) throws -> Swift::Bool) -> any Swift::Error = #externalMacro(module: "TestingMacros", type: "RequireThrowsMacro")
301
+ @available(swift, deprecated: 100000.0, message: "Examine the result of '#require(throws:)' instead.")
302
+ @discardableResult
303
+ @freestanding(expression) public macro require<R>(_ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: () async throws -> R, throws errorMatcher: (any Swift::Error) async throws -> Swift::Bool) -> any Swift::Error = #externalMacro(module: "TestingMacros", type: "RequireThrowsMacro")
304
+ @discardableResult
305
+ @available(*, unavailable, message: "Exit tests are not available on this platform.")
306
+ @freestanding(expression) public macro expect(processExitsWith expectedExitCondition: Testing::ExitTest.Testing::Condition, observing observedValues: [any Swift::PartialKeyPath<Testing::ExitTest.Testing::Result> & Swift::Sendable] = [], _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: @escaping @Sendable () async throws -> Swift::Void) -> Testing::ExitTest.Testing::Result? = #externalMacro(module: "TestingMacros", type: "ExitTestExpectMacro")
307
+ @discardableResult
308
+ @available(*, unavailable, message: "Exit tests are not available on this platform.")
309
+ @freestanding(expression) public macro require(processExitsWith expectedExitCondition: Testing::ExitTest.Testing::Condition, observing observedValues: [any Swift::PartialKeyPath<Testing::ExitTest.Testing::Result> & Swift::Sendable] = [], _ comment: @autoclosure () -> Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, performing expression: @escaping @Sendable () async throws -> Swift::Void) -> Testing::ExitTest.Testing::Result = #externalMacro(module: "TestingMacros", type: "ExitTestRequireMacro")
310
+ @freestanding(expression) public macro __capturedValue<T>(_ value: T, _ name: Swift::String, _ expectedType: T.Type) -> T = #externalMacro(module: "TestingMacros", type: "ExitTestCapturedValueMacro") where T : Swift::Decodable, T : Swift::Encodable, T : Swift::Sendable
311
+ @freestanding(expression) public macro __capturedValue<T>(_ value: borrowing T, _ name: Swift::String, _ expectedType: T.Type) -> Swift::Never = #externalMacro(module: "TestingMacros", type: "ExitTestBadCapturedValueMacro") where T : ~Copyable, T : ~Escapable
312
+ @freestanding(expression) public macro __capturedValue<T, U>(_ value: borrowing T, _ name: Swift::String, _ expectedType: U.Type) -> T = #externalMacro(module: "TestingMacros", type: "ExitTestIncorrectlyCapturedValueMacro") where T : ~Copyable, T : ~Escapable, U : ~Copyable, U : ~Escapable
313
+ public func __checkValue(_ condition: Swift::Bool, expression: Testing::__Expression, expressionWithCapturedRuntimeValues: @autoclosure () -> Testing::__Expression? = nil, mismatchedErrorDescription: @autoclosure () -> Swift::String? = nil, difference: @autoclosure () -> Swift::String? = nil, mismatchedExitConditionDescription: @autoclosure () -> Swift::String? = nil, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<Swift::Void, any Swift::Error>
314
+ @_disfavoredOverload public func __checkBinaryOperation<T, U>(_ lhs: T, _ op: (T, () -> U) -> Swift::Bool, _ rhs: @autoclosure () -> U, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<Swift::Void, any Swift::Error>
315
+ @_disfavoredOverload public func __checkFunctionCall<T, each U>(_ lhs: T, calling functionCall: (T, repeat each U) throws -> Swift::Bool, _ arguments: repeat each U, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) rethrows -> Swift::Result<Swift::Void, any Swift::Error>
316
+ public func __checkFunctionCall<T, Arg0>(_ lhs: T, calling functionCall: (T, Arg0) throws -> Swift::Bool, _ argument0: Arg0, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) rethrows -> Swift::Result<Swift::Void, any Swift::Error>
317
+ public func __checkFunctionCall<T, Arg0, Arg1>(_ lhs: T, calling functionCall: (T, Arg0, Arg1) throws -> Swift::Bool, _ argument0: Arg0, _ argument1: Arg1, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) rethrows -> Swift::Result<Swift::Void, any Swift::Error>
318
+ public func __checkFunctionCall<T, Arg0, Arg1, Arg2>(_ lhs: T, calling functionCall: (T, Arg0, Arg1, Arg2) throws -> Swift::Bool, _ argument0: Arg0, _ argument1: Arg1, _ argument2: Arg2, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) rethrows -> Swift::Result<Swift::Void, any Swift::Error>
319
+ public func __checkFunctionCall<T, Arg0, Arg1, Arg2, Arg3>(_ lhs: T, calling functionCall: (T, Arg0, Arg1, Arg2, Arg3) throws -> Swift::Bool, _ argument0: Arg0, _ argument1: Arg1, _ argument2: Arg2, _ argument3: Arg3, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) rethrows -> Swift::Result<Swift::Void, any Swift::Error>
320
+ public func __checkInoutFunctionCall<T, U>(_ lhs: T, calling functionCall: (T, inout U) throws -> Swift::Bool, _ arguments: inout U, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) rethrows -> Swift::Result<Swift::Void, any Swift::Error>
321
+ @_disfavoredOverload public func __checkFunctionCall<T, each U, R>(_ lhs: T, calling functionCall: (T, repeat each U) throws -> R?, _ arguments: repeat each U, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) rethrows -> Swift::Result<R, any Swift::Error>
322
+ public func __checkFunctionCall<T, Arg0, R>(_ lhs: T, calling functionCall: (T, Arg0) throws -> R?, _ argument0: Arg0, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) rethrows -> Swift::Result<R, any Swift::Error>
323
+ public func __checkFunctionCall<T, Arg0, Arg1, R>(_ lhs: T, calling functionCall: (T, Arg0, Arg1) throws -> R?, _ argument0: Arg0, _ argument1: Arg1, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) rethrows -> Swift::Result<R, any Swift::Error>
324
+ public func __checkFunctionCall<T, Arg0, Arg1, Arg2, R>(_ lhs: T, calling functionCall: (T, Arg0, Arg1, Arg2) throws -> R?, _ argument0: Arg0, _ argument1: Arg1, _ argument2: Arg2, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) rethrows -> Swift::Result<R, any Swift::Error>
325
+ public func __checkFunctionCall<T, Arg0, Arg1, Arg2, Arg3, R>(_ lhs: T, calling functionCall: (T, Arg0, Arg1, Arg2, Arg3) throws -> R?, _ argument0: Arg0, _ argument1: Arg1, _ argument2: Arg2, _ argument3: Arg3, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) rethrows -> Swift::Result<R, any Swift::Error>
326
+ public func __checkInoutFunctionCall<T, U, R>(_ lhs: T, calling functionCall: (T, inout U) throws -> R?, _ arguments: inout U, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) rethrows -> Swift::Result<R, any Swift::Error>
327
+ public func __checkPropertyAccess<T>(_ lhs: T, getting memberAccess: (T) -> Swift::Bool, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<Swift::Void, any Swift::Error>
328
+ public func __checkPropertyAccess<T, U>(_ lhs: T, getting memberAccess: (T) -> U?, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<U, any Swift::Error>
329
+ @_disfavoredOverload public func __checkBinaryOperation<T>(_ lhs: T, _ op: (T, () -> T) -> Swift::Bool, _ rhs: @autoclosure () -> T, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<Swift::Void, any Swift::Error> where T : Swift::BidirectionalCollection, T.Element : Swift::Equatable
330
+ public func __checkBinaryOperation(_ lhs: Swift::String, _ op: (Swift::String, () -> Swift::String) -> Swift::Bool, _ rhs: @autoclosure () -> Swift::String, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<Swift::Void, any Swift::Error>
331
+ public func __checkBinaryOperation<T, U>(_ lhs: T, _ op: (T, () -> U) -> Swift::Bool, _ rhs: @autoclosure () -> U, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<Swift::Void, any Swift::Error> where T : Swift::RangeExpression, U : Swift::RangeExpression
332
+ public func __checkCast<V, T>(_ value: V, is _: T.Type, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<Swift::Void, any Swift::Error>
333
+ public func __checkValue<T>(_ optionalValue: T?, expression: Testing::__Expression, expressionWithCapturedRuntimeValues: @autoclosure () -> Testing::__Expression? = nil, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<T, any Swift::Error>
334
+ @_disfavoredOverload public func __checkBinaryOperation<T>(_ lhs: T?, _ op: (T?, () -> T?) -> T?, _ rhs: @autoclosure () -> T?, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<T, any Swift::Error>
335
+ public func __checkCast<V, T>(_ value: V, as _: T.Type, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<T, any Swift::Error>
336
+ public func __checkClosureCall<E>(throws errorType: E.Type, performing body: () throws -> some Any, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<E?, any Swift::Error> where E : Swift::Error
337
+ public func __checkClosureCall<E>(throws errorType: E.Type, performing body: () async throws -> sending some Any, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, isolation: isolated (any _Concurrency::Actor)? = #isolation, sourceLocation: Testing::SourceLocation) async -> Swift::Result<E?, any Swift::Error> where E : Swift::Error
338
+ public func __checkClosureCall(throws _: Swift::Never.Type, performing body: () throws -> some Any, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<Swift::Void, any Swift::Error>
339
+ public func __checkClosureCall(throws _: Swift::Never.Type, performing body: () async throws -> sending some Any, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, isolation: isolated (any _Concurrency::Actor)? = #isolation, sourceLocation: Testing::SourceLocation) async -> Swift::Result<Swift::Void, any Swift::Error>
340
+ public func __checkClosureCall<E>(throws error: E, performing body: () throws -> some Any, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<E?, any Swift::Error> where E : Swift::Equatable, E : Swift::Error
341
+ public func __checkClosureCall<E>(throws error: E, performing body: () async throws -> sending some Any, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, isolation: isolated (any _Concurrency::Actor)? = #isolation, sourceLocation: Testing::SourceLocation) async -> Swift::Result<E?, any Swift::Error> where E : Swift::Equatable, E : Swift::Error
342
+ public func __checkClosureCall<R>(performing body: () throws -> R, throws errorMatcher: (any Swift::Error) throws -> Swift::Bool, mismatchExplanation: ((any Swift::Error) -> Swift::String)? = nil, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, sourceLocation: Testing::SourceLocation) -> Swift::Result<(any Swift::Error)?, any Swift::Error>
343
+ public func __checkClosureCall<R>(performing body: () async throws -> sending R, throws errorMatcher: (any Swift::Error) async throws -> Swift::Bool, mismatchExplanation: ((any Swift::Error) -> Swift::String)? = nil, expression: Testing::__Expression, comments: @autoclosure () -> [Testing::Comment], isRequired: Swift::Bool, isolation: isolated (any _Concurrency::Actor)? = #isolation, sourceLocation: Testing::SourceLocation) async -> Swift::Result<(any Swift::Error)?, any Swift::Error>
344
+ public struct Confirmation : Swift::Sendable {
345
+ public func confirm(count: Swift::Int = 1)
346
+ }
347
+ extension Testing::Confirmation {
348
+ public func callAsFunction(count: Swift::Int = 1)
349
+ }
350
+ public func confirmation<R>(_ comment: Testing::Comment? = nil, expectedCount: Swift::Int = 1, isolation: isolated (any _Concurrency::Actor)? = #isolation, sourceLocation: Testing::SourceLocation = #_sourceLocation, _ body: (Testing::Confirmation) async throws -> sending R) async rethrows -> R
351
+ public func confirmation<R>(_ comment: Testing::Comment? = nil, expectedCount: some RangeExpression<Int> & Sequence<Int> & Sendable, isolation: isolated (any _Concurrency::Actor)? = #isolation, sourceLocation: Testing::SourceLocation = #_sourceLocation, _ body: (Testing::Confirmation) async throws -> sending R) async rethrows -> R
352
+ @available(*, unavailable, message: "Unbounded range '...' has no effect when used with a confirmation.")
353
+ public func confirmation<R>(_ comment: Testing::Comment? = nil, expectedCount: Swift::UnboundedRange, isolation: isolated (any _Concurrency::Actor)? = #isolation, sourceLocation: Testing::SourceLocation = #_sourceLocation, _ body: (Testing::Confirmation) async throws -> R) async rethrows -> R
354
+ @available(*, unavailable, message: "Range expression '...n' is ambiguous without an explicit lower bound")
355
+ public func confirmation<R>(_ comment: Testing::Comment? = nil, expectedCount: Swift::PartialRangeThrough<Swift::Int>, isolation: isolated (any _Concurrency::Actor)? = #isolation, sourceLocation: Testing::SourceLocation = #_sourceLocation, _ body: (Testing::Confirmation) async throws -> R) async rethrows -> R
356
+ @available(*, unavailable, message: "Range expression '..<n' is ambiguous without an explicit lower bound")
357
+ public func confirmation<R>(_ comment: Testing::Comment? = nil, expectedCount: Swift::PartialRangeUpTo<Swift::Int>, isolation: isolated (any _Concurrency::Actor)? = #isolation, sourceLocation: Testing::SourceLocation = #_sourceLocation, _ body: (Testing::Confirmation) async throws -> R) async rethrows -> R
358
+ public struct Issue : Swift::Sendable {
359
+ public enum Kind : Swift::Sendable {
360
+ case unconditional
361
+ indirect case expectationFailed(_: Testing::Expectation)
362
+ indirect case confirmationMiscounted(actual: Swift::Int, expected: any Swift::RangeExpression & Swift::Sendable)
363
+ indirect case errorCaught(_: any Swift::Error)
364
+ indirect case timeLimitExceeded(timeLimitComponents: (seconds: Swift::Int64, attoseconds: Swift::Int64))
365
+ case knownIssueNotRecorded
366
+ case valueAttachmentFailed(_: any Swift::Error)
367
+ case apiMisused
368
+ case system
369
+ }
370
+ public var kind: Testing::Issue.Testing::Kind
371
+ public enum Severity : Swift::Sendable {
372
+ case warning
373
+ case error
374
+ public static func == (a: Testing::Issue.Testing::Severity, b: Testing::Issue.Testing::Severity) -> Swift::Bool
375
+ public func hash(into hasher: inout Swift::Hasher)
376
+ public var hashValue: Swift::Int {
377
+ get
378
+ }
379
+ }
380
+ public var severity: Testing::Issue.Testing::Severity
381
+ public var isFailure: Swift::Bool {
382
+ get
383
+ }
384
+ public var comments: [Testing::Comment]
385
+ public var error: (any Swift::Error)? {
386
+ get
387
+ }
388
+ public var sourceLocation: Testing::SourceLocation? {
389
+ get
390
+ set
391
+ }
392
+ }
393
+ extension Testing::Issue.Testing::Severity : Swift::Comparable {
394
+ public static func < (a: Testing::Issue.Testing::Severity, b: Testing::Issue.Testing::Severity) -> Swift::Bool
395
+ }
396
+ extension Testing::Issue : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible {
397
+ public var description: Swift::String {
398
+ get
399
+ }
400
+ public var debugDescription: Swift::String {
401
+ get
402
+ }
403
+ }
404
+ extension Testing::Issue.Testing::Kind : Swift::CustomStringConvertible {
405
+ public var description: Swift::String {
406
+ get
407
+ }
408
+ }
409
+ extension Testing::Issue.Testing::Severity : Swift::CustomStringConvertible {
410
+ public var description: Swift::String {
411
+ get
412
+ }
413
+ }
414
+ extension Testing::Issue {
415
+ @available(*, deprecated, message: "Use record(_:severity:sourceLocation:) instead.")
416
+ @discardableResult
417
+ @_disfavoredOverload public static func record(_ comment: Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) -> Testing::Issue
418
+ @discardableResult
419
+ public static func record(_ comment: Testing::Comment? = nil, severity: Testing::Issue.Testing::Severity = .error, sourceLocation: Testing::SourceLocation = #_sourceLocation) -> Testing::Issue
420
+ }
421
+ extension Testing::Issue {
422
+ @discardableResult
423
+ public static func record(_ error: any Swift::Error, _ comment: Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) -> Testing::Issue
424
+ }
425
+ @usableFromInline
426
+ @exclusivity(unchecked) nonisolated(unsafe) internal var failureBreakpointValue: Swift::Int
427
+ @usableFromInline
428
+ @inline(never) internal func failureBreakpoint()
429
+ public typealias KnownIssueMatcher = @Sendable (_ issue: Testing::Issue) -> Swift::Bool
430
+ public func withKnownIssue(_ comment: Testing::Comment? = nil, isIntermittent: Swift::Bool = false, sourceLocation: Testing::SourceLocation = #_sourceLocation, _ body: () throws -> Swift::Void)
431
+ public func withKnownIssue(_ comment: Testing::Comment? = nil, isIntermittent: Swift::Bool = false, sourceLocation: Testing::SourceLocation = #_sourceLocation, _ body: () throws -> Swift::Void, when precondition: () -> Swift::Bool = { true }, matching issueMatcher: @escaping Testing::KnownIssueMatcher = { _ in true }) rethrows
432
+ public func withKnownIssue(_ comment: Testing::Comment? = nil, isIntermittent: Swift::Bool = false, isolation: isolated (any _Concurrency::Actor)? = #isolation, sourceLocation: Testing::SourceLocation = #_sourceLocation, _ body: () async throws -> Swift::Void) async
433
+ public func withKnownIssue(_ comment: Testing::Comment? = nil, isIntermittent: Swift::Bool = false, isolation: isolated (any _Concurrency::Actor)? = #isolation, sourceLocation: Testing::SourceLocation = #_sourceLocation, _ body: () async throws -> Swift::Void, when precondition: () async -> Swift::Bool = { true }, matching issueMatcher: @escaping Testing::KnownIssueMatcher = { _ in true }) async rethrows
434
+ public protocol CustomTestArgumentEncodable : Swift::Sendable {
435
+ func encodeTestArgument(to encoder: some Encoder) throws
436
+ }
437
+ extension Testing::Test {
438
+ public struct Case : Swift::Sendable {
439
+ public var isParameterized: Swift::Bool {
440
+ get
441
+ }
442
+ }
443
+ }
444
+ extension Testing::Test {
445
+ public static var current: Testing::Test? {
446
+ get
447
+ }
448
+ }
449
+ extension Testing::Test.Testing::Case {
450
+ public static var current: Testing::Test.Testing::Case? {
451
+ get
452
+ }
453
+ }
454
+ public protocol CustomTestReflectable {
455
+ var customTestMirror: Swift::Mirror { get }
456
+ }
457
+ extension Swift::Mirror {
458
+ public init(reflectingForTest subject: some CustomTestReflectable)
459
+ public init(reflectingForTest subject: some Any)
460
+ }
461
+ public protocol CustomTestStringConvertible {
462
+ var testDescription: Swift::String { get }
463
+ }
464
+ extension Swift::String {
465
+ public init(describingForTest value: some Any)
466
+ }
467
+ extension Swift::Optional : Testing::CustomTestStringConvertible {
468
+ public var testDescription: Swift::String {
469
+ get
470
+ }
471
+ }
472
+ extension Swift::_OptionalNilComparisonType : Testing::CustomTestStringConvertible {
473
+ public var testDescription: Swift::String {
474
+ get
475
+ }
476
+ }
477
+ extension Testing::CustomTestStringConvertible where Self : Swift::StringProtocol {
478
+ public var testDescription: Swift::String {
479
+ get
480
+ }
481
+ }
482
+ extension Swift::String : Testing::CustomTestStringConvertible {
483
+ }
484
+ extension Swift::Substring : Testing::CustomTestStringConvertible {
485
+ }
486
+ extension Swift::ClosedRange : Testing::CustomTestStringConvertible {
487
+ public var testDescription: Swift::String {
488
+ get
489
+ }
490
+ }
491
+ extension Swift::PartialRangeFrom : Testing::CustomTestStringConvertible {
492
+ public var testDescription: Swift::String {
493
+ get
494
+ }
495
+ }
496
+ extension Swift::PartialRangeThrough : Testing::CustomTestStringConvertible {
497
+ public var testDescription: Swift::String {
498
+ get
499
+ }
500
+ }
501
+ extension Swift::PartialRangeUpTo : Testing::CustomTestStringConvertible {
502
+ public var testDescription: Swift::String {
503
+ get
504
+ }
505
+ }
506
+ extension Swift::Range : Testing::CustomTestStringConvertible {
507
+ public var testDescription: Swift::String {
508
+ get
509
+ }
510
+ }
511
+ public struct __Expression : Swift::Sendable {
512
+ }
513
+ extension Testing::__Expression : Swift::Codable {
514
+ public func encode(to encoder: any Swift::Encoder) throws
515
+ public init(from decoder: any Swift::Decoder) throws
516
+ }
517
+ extension Testing::__Expression : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible {
518
+ public var description: Swift::String {
519
+ get
520
+ }
521
+ public var debugDescription: Swift::String {
522
+ get
523
+ }
524
+ }
525
+ extension Testing::__Expression {
526
+ public static func __fromSyntaxNode(_ syntaxNode: Swift::String) -> Testing::__Expression
527
+ public static func __fromStringLiteral(_ sourceCode: Swift::String, _ stringValue: Swift::String) -> Testing::__Expression
528
+ public static func __fromBinaryOperation(_ lhs: Testing::__Expression, _ op: Swift::String, _ rhs: Testing::__Expression) -> Testing::__Expression
529
+ public static func __fromFunctionCall(_ value: Testing::__Expression?, _ functionName: Swift::String, _ arguments: (label: Swift::String?, value: Testing::__Expression)...) -> Testing::__Expression
530
+ public static func __fromPropertyAccess(_ value: Testing::__Expression, _ keyPath: Testing::__Expression) -> Testing::__Expression
531
+ public static func __fromNegation(_ expression: Testing::__Expression, _ isParenthetical: Swift::Bool) -> Testing::__Expression
532
+ }
533
+ public struct __SourceBounds : Swift::Sendable {
534
+ }
535
+ extension Testing::__SourceBounds {
536
+ public init(__uncheckedLowerBound lowerBound: Testing::SourceLocation, upperBound: (line: Swift::Int, column: Swift::Int))
537
+ }
538
+ public struct SourceLocation : Swift::Sendable {
539
+ public var fileID: Swift::String {
540
+ get
541
+ set
542
+ }
543
+ public var fileName: Swift::String {
544
+ get
545
+ }
546
+ public var moduleName: Swift::String {
547
+ get
548
+ }
549
+ public var filePath: Swift::String
550
+ public var line: Swift::Int {
551
+ get
552
+ set
553
+ }
554
+ public var column: Swift::Int {
555
+ get
556
+ set
557
+ }
558
+ public init(fileID: Swift::String, filePath: Swift::String, line: Swift::Int, column: Swift::Int)
559
+ }
560
+ extension Testing::SourceLocation : Swift::Equatable, Swift::Hashable, Swift::Comparable {
561
+ public static func == (lhs: Testing::SourceLocation, rhs: Testing::SourceLocation) -> Swift::Bool
562
+ public func hash(into hasher: inout Swift::Hasher)
563
+ public static func < (lhs: Testing::SourceLocation, rhs: Testing::SourceLocation) -> Swift::Bool
564
+ public static func <= (lhs: Testing::SourceLocation, rhs: Testing::SourceLocation) -> Swift::Bool
565
+ public static func > (lhs: Testing::SourceLocation, rhs: Testing::SourceLocation) -> Swift::Bool
566
+ public static func >= (lhs: Testing::SourceLocation, rhs: Testing::SourceLocation) -> Swift::Bool
567
+ public var hashValue: Swift::Int {
568
+ get
569
+ }
570
+ }
571
+ extension Testing::SourceLocation : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible {
572
+ public var description: Swift::String {
573
+ get
574
+ }
575
+ public var debugDescription: Swift::String {
576
+ get
577
+ }
578
+ }
579
+ extension Testing::SourceLocation : Swift::Codable {
580
+ public func encode(to encoder: any Swift::Encoder) throws
581
+ public init(from decoder: any Swift::Decoder) throws
582
+ }
583
+ extension Testing::SourceLocation {
584
+ @available(swift, deprecated: 6.3, renamed: "filePath")
585
+ public var _filePath: Swift::String {
586
+ get
587
+ set
588
+ }
589
+ }
590
+ @freestanding(expression) public macro _sourceLocation() -> Testing::SourceLocation = #externalMacro(module: "TestingMacros", type: "SourceLocationMacro")
591
+ extension Testing::SourceLocation {
592
+ public static func __here(fileID: Swift::String = #fileID, filePath: Swift::String = #filePath, line: Swift::Int = #line, column: Swift::Int = #column) -> Testing::SourceLocation
593
+ public init(__uncheckedFileID fileID: Swift::String, filePath: Swift::String, line: Swift::Int, column: Swift::Int)
594
+ }
595
+ extension Swift::Result {
596
+ @inlinable public func __expected() where Success == () {}
597
+ @inlinable public func __required() throws -> Success {
598
+ try get()
599
+ }
600
+ }
601
+ extension Swift::Result {
602
+ @discardableResult
603
+ @inlinable public func __expected<T>() -> Success where Success == T? {
604
+ try? get()
605
+ }
606
+ @discardableResult
607
+ public func __required<T>() throws -> T where Success == T?
608
+ }
609
+ public typealias __TestContentRecordAccessor = @convention(c) (_ outValue: Swift::UnsafeMutableRawPointer, _ type: Swift::UnsafeRawPointer, _ hint: Swift::UnsafeRawPointer?, _ reserved: Swift::UInt) -> Swift::CBool
610
+ public typealias __TestContentRecord = (kind: Swift::UInt32, reserved1: Swift::UInt32, accessor: Testing::__TestContentRecordAccessor, context: Swift::UInt, reserved2: Swift::UInt)
611
+ extension Testing::Test : Swift::Identifiable {
612
+ public struct ID : Swift::Sendable, Swift::Equatable, Swift::Hashable {
613
+ public var moduleName: Swift::String
614
+ public var nameComponents: [Swift::String]
615
+ public var sourceLocation: Testing::SourceLocation? {
616
+ get
617
+ set
618
+ }
619
+ public var parent: Testing::Test.Testing::ID? {
620
+ get
621
+ }
622
+ public static func == (a: Testing::Test.Testing::ID, b: Testing::Test.Testing::ID) -> Swift::Bool
623
+ public func hash(into hasher: inout Swift::Hasher)
624
+ public var hashValue: Swift::Int {
625
+ get
626
+ }
627
+ }
628
+ public var id: Testing::Test.Testing::ID {
629
+ get
630
+ }
631
+ }
632
+ extension Testing::Test.Testing::ID : Swift::CustomStringConvertible {
633
+ public var description: Swift::String {
634
+ get
635
+ }
636
+ }
637
+ extension Testing::Test.Testing::ID : Swift::Codable {
638
+ public func encode(to encoder: any Swift::Encoder) throws
639
+ public init(from decoder: any Swift::Decoder) throws
640
+ }
641
+ public struct Test : Swift::Sendable {
642
+ public var name: Swift::String {
643
+ get
644
+ set
645
+ }
646
+ public var displayName: Swift::String? {
647
+ get
648
+ set
649
+ }
650
+ public var traits: [any Testing::Trait] {
651
+ get
652
+ set
653
+ }
654
+ public var sourceLocation: Testing::SourceLocation {
655
+ get
656
+ set
657
+ }
658
+ public var isParameterized: Swift::Bool {
659
+ get
660
+ }
661
+ public var isSuite: Swift::Bool {
662
+ get
663
+ }
664
+ }
665
+ extension Testing::Test : Swift::Equatable, Swift::Hashable {
666
+ public static func == (lhs: Testing::Test, rhs: Testing::Test) -> Swift::Bool
667
+ public func hash(into hasher: inout Swift::Hasher)
668
+ public var hashValue: Swift::Int {
669
+ get
670
+ }
671
+ }
672
+ extension Testing::Test {
673
+ public static func cancel(_ comment: Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) throws -> Swift::Never
674
+ }
675
+ extension Testing::Test {
676
+ @safe public static func __store(_ generator: @escaping @Sendable () async -> Testing::Test, into outValue: Swift::UnsafeMutableRawPointer, asTypeAt typeAddress: Swift::UnsafeRawPointer) -> Swift::CBool
677
+ }
678
+ public typealias __TestContentRecord6_2 = (kind: Swift::UInt32, reserved1: Swift::UInt32, accessor: Testing::__TestContentRecordAccessor?, context: Swift::UInt, reserved2: Swift::UInt)
679
+ @_alwaysEmitConformanceMetadata public protocol __TestContentRecordContainer {
680
+ nonisolated static var __testContentRecord: Testing::__TestContentRecord6_2 { get }
681
+ }
682
+ public typealias __XCTestCompatibleSelector = Swift::Never
683
+ @inlinable public func __xcTestCompatibleSelector(_ selector: Swift::String) -> Testing::__XCTestCompatibleSelector? {
684
+ nil
685
+ }
686
+ @attached(peer) @_documentation(visibility: private) public macro Suite(_ traits: any Testing::SuiteTrait...) = #externalMacro(module: "TestingMacros", type: "SuiteDeclarationMacro")
687
+ @attached(peer) public macro Suite(_ displayName: _const Swift::String? = nil, _ traits: any Testing::SuiteTrait...) = #externalMacro(module: "TestingMacros", type: "SuiteDeclarationMacro")
688
+ extension Testing::Test {
689
+ public static func __type<S>(_ containingType: S.Type, displayName: Swift::String? = nil, traits: [any Testing::SuiteTrait], sourceBounds: Testing::__SourceBounds) -> Testing::Test where S : ~Copyable, S : ~Escapable
690
+ }
691
+ @attached(peer) @_documentation(visibility: private) public macro Test(_ traits: any Testing::TestTrait...) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro")
692
+ @attached(peer) public macro Test(_ displayName: _const Swift::String? = nil, _ traits: any Testing::TestTrait...) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro")
693
+ extension Testing::Test {
694
+ public typealias __Parameter = (firstName: Swift::String, secondName: Swift::String?, type: any Any.Type)
695
+ public static func __function<S>(named testFunctionName: Swift::String, in containingType: S.Type?, xcTestCompatibleSelector: Testing::__XCTestCompatibleSelector?, displayName: Swift::String? = nil, traits: [any Testing::TestTrait], sourceBounds: Testing::__SourceBounds, parameters: [Testing::Test.Testing::__Parameter] = [], testFunction: @escaping @Sendable () async throws -> Swift::Void) -> Testing::Test where S : ~Copyable, S : ~Escapable
696
+ }
697
+ @attached(peer) @_documentation(visibility: private) public macro Test<C>(_ traits: any Testing::TestTrait..., arguments collection: C) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro") where C : Swift::Collection, C : Swift::Sendable, C.Element : Swift::Sendable
698
+ @attached(peer) public macro Test<C>(_ displayName: _const Swift::String? = nil, _ traits: any Testing::TestTrait..., arguments collection: C) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro") where C : Swift::Collection, C : Swift::Sendable, C.Element : Swift::Sendable
699
+ extension Testing::Test {
700
+ public static func __function<S, C>(named testFunctionName: Swift::String, in containingType: S.Type?, xcTestCompatibleSelector: Testing::__XCTestCompatibleSelector?, displayName: Swift::String? = nil, traits: [any Testing::TestTrait], arguments collection: @escaping @Sendable () async throws -> C, sourceBounds: Testing::__SourceBounds, parameters paramTuples: [Testing::Test.Testing::__Parameter], testFunction: @escaping @Sendable (C.Element) async throws -> Swift::Void) -> Testing::Test where C : Swift::Collection, C : Swift::Sendable, C.Element : Swift::Sendable, S : ~Copyable, S : ~Escapable
701
+ }
702
+ @attached(peer) @_documentation(visibility: private) public macro Test<C1, C2>(_ traits: any Testing::TestTrait..., arguments collection1: C1, _ collection2: C2) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro") where C1 : Swift::Collection, C1 : Swift::Sendable, C2 : Swift::Collection, C2 : Swift::Sendable, C1.Element : Swift::Sendable, C2.Element : Swift::Sendable
703
+ @attached(peer) public macro Test<C1, C2>(_ displayName: _const Swift::String? = nil, _ traits: any Testing::TestTrait..., arguments collection1: C1, _ collection2: C2) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro") where C1 : Swift::Collection, C1 : Swift::Sendable, C2 : Swift::Collection, C2 : Swift::Sendable, C1.Element : Swift::Sendable, C2.Element : Swift::Sendable
704
+ @attached(peer) @_documentation(visibility: private) public macro Test<C1, C2>(_ traits: any Testing::TestTrait..., arguments zippedCollections: Swift::Zip2Sequence<C1, C2>) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro") where C1 : Swift::Collection, C1 : Swift::Sendable, C2 : Swift::Collection, C2 : Swift::Sendable, C1.Element : Swift::Sendable, C2.Element : Swift::Sendable
705
+ @attached(peer) public macro Test<C1, C2>(_ displayName: _const Swift::String? = nil, _ traits: any Testing::TestTrait..., arguments zippedCollections: Swift::Zip2Sequence<C1, C2>) = #externalMacro(module: "TestingMacros", type: "TestDeclarationMacro") where C1 : Swift::Collection, C1 : Swift::Sendable, C2 : Swift::Collection, C2 : Swift::Sendable, C1.Element : Swift::Sendable, C2.Element : Swift::Sendable
706
+ extension Testing::Test {
707
+ public static func __function<S, C1, C2>(named testFunctionName: Swift::String, in containingType: S.Type?, xcTestCompatibleSelector: Testing::__XCTestCompatibleSelector?, displayName: Swift::String? = nil, traits: [any Testing::TestTrait], arguments collection1: @escaping @Sendable () async throws -> C1, _ collection2: @escaping @Sendable () async throws -> C2, sourceBounds: Testing::__SourceBounds, parameters paramTuples: [Testing::Test.Testing::__Parameter], testFunction: @escaping @Sendable (C1.Element, C2.Element) async throws -> Swift::Void) -> Testing::Test where C1 : Swift::Collection, C1 : Swift::Sendable, C2 : Swift::Collection, C2 : Swift::Sendable, C1.Element : Swift::Sendable, C2.Element : Swift::Sendable, S : ~Copyable, S : ~Escapable
708
+ public static func __function<S, C, E1, E2>(named testFunctionName: Swift::String, in containingType: S.Type?, xcTestCompatibleSelector: Testing::__XCTestCompatibleSelector?, displayName: Swift::String? = nil, traits: [any Testing::TestTrait], arguments collection: @escaping @Sendable () async throws -> C, sourceBounds: Testing::__SourceBounds, parameters paramTuples: [Testing::Test.Testing::__Parameter], testFunction: @escaping @Sendable ((E1, E2)) async throws -> Swift::Void) -> Testing::Test where C : Swift::Collection, C : Swift::Sendable, E1 : Swift::Sendable, E2 : Swift::Sendable, C.Element == (E1, E2), S : ~Copyable, S : ~Escapable
709
+ public static func __function<S, C>(named testFunctionName: Swift::String, in containingType: S.Type?, xcTestCompatibleSelector: Testing::__XCTestCompatibleSelector?, displayName: Swift::String? = nil, traits: [any Testing::TestTrait], arguments dictionary: @escaping @Sendable () async throws -> C, sourceBounds: Testing::__SourceBounds, parameters paramTuples: [Testing::Test.Testing::__Parameter], testFunction: @escaping @Sendable (C.Element) async throws -> Swift::Void) -> Testing::Test where C : Swift::Collection, C : Swift::ExpressibleByDictionaryLiteral, C : Swift::Sendable, C.Element == (key: C.Key, value: C.Value), C.Key : Swift::Sendable, C.Value : Swift::Sendable, S : ~Copyable, S : ~Escapable
710
+ public static func __function<S, C1, C2>(named testFunctionName: Swift::String, in containingType: S.Type?, xcTestCompatibleSelector: Testing::__XCTestCompatibleSelector?, displayName: Swift::String? = nil, traits: [any Testing::TestTrait], arguments zippedCollections: @escaping @Sendable () async throws -> Swift::Zip2Sequence<C1, C2>, sourceBounds: Testing::__SourceBounds, parameters paramTuples: [Testing::Test.Testing::__Parameter], testFunction: @escaping @Sendable (C1.Element, C2.Element) async throws -> Swift::Void) -> Testing::Test where C1 : Swift::Collection, C1 : Swift::Sendable, C2 : Swift::Collection, C2 : Swift::Sendable, C1.Element : Swift::Sendable, C2.Element : Swift::Sendable, S : ~Copyable, S : ~Escapable
711
+ }
712
+ @attached(peer) public macro __testing(semantics arguments: Swift::String...) = #externalMacro(module: "TestingMacros", type: "PragmaMacro")
713
+ @attached(peer) public macro __testing(warning message: _const Swift::String) = #externalMacro(module: "TestingMacros", type: "PragmaMacro")
714
+ #if compiler(>=5.3) && $Lifetimes
715
+ @_lifetime(copy value)
716
+ @inlinable public func __requiringTry<T>(_ value: consuming T) throws -> T where T : ~Copyable, T : ~Escapable {
717
+ value
718
+ }
719
+ #else
720
+ @lifetime(copy value)
721
+ @inlinable public func __requiringTry<T>(_ value: consuming T) throws -> T where T : ~Copyable, T : ~Escapable {
722
+ value
723
+ }
724
+ #endif
725
+ #if compiler(>=5.3) && $Lifetimes
726
+ @_lifetime(copy value)
727
+ @inlinable public func __requiringAwait<T>(_ value: consuming T, isolation: isolated (any _Concurrency::Actor)? = #isolation) async -> T where T : ~Copyable, T : ~Escapable {
728
+ value
729
+ }
730
+ #else
731
+ @lifetime(copy value)
732
+ @inlinable public func __requiringAwait<T>(_ value: consuming T, isolation: isolated (any _Concurrency::Actor)? = #isolation) async -> T where T : ~Copyable, T : ~Escapable {
733
+ value
734
+ }
735
+ #endif
736
+ #if compiler(>=5.3) && $Lifetimes
737
+ @_lifetime(copy value)
738
+ @unsafe @inlinable public func __requiringUnsafe<T>(_ value: consuming T) -> T where T : ~Copyable, T : ~Escapable {
739
+ value
740
+ }
741
+ #else
742
+ @lifetime(copy value)
743
+ @unsafe @inlinable public func __requiringUnsafe<T>(_ value: consuming T) -> T where T : ~Copyable, T : ~Escapable {
744
+ value
745
+ }
746
+ #endif
747
+ public var __defaultSynchronousIsolationContext: (any _Concurrency::Actor)? {
748
+ get
749
+ }
750
+ @inlinable public func __invokeXCTestMethod<T>(_ selector: Testing::__XCTestCompatibleSelector?, onInstanceOf type: T.Type, sourceLocation: Testing::SourceLocation) async throws -> Swift::Bool where T : ~Copyable, T : ~Escapable {
751
+ false
752
+ }
753
+ public func __invokeXCTestMethod<T>(_ selector: Testing::__XCTestCompatibleSelector?, onInstanceOf xcTestSubclass: T.Type, sourceLocation: Testing::SourceLocation) async throws -> Swift::Bool where T : AnyObject
754
+ public struct Bug {
755
+ public var url: Swift::String?
756
+ public var id: Swift::String?
757
+ public var title: Testing::Comment?
758
+ }
759
+ extension Testing::Bug : Swift::Equatable, Swift::Hashable {
760
+ public static func == (lhs: Testing::Bug, rhs: Testing::Bug) -> Swift::Bool
761
+ public func hash(into hasher: inout Swift::Hasher)
762
+ public var hashValue: Swift::Int {
763
+ get
764
+ }
765
+ }
766
+ extension Testing::Bug : Swift::Codable {
767
+ public func encode(to encoder: any Swift::Encoder) throws
768
+ public init(from decoder: any Swift::Decoder) throws
769
+ }
770
+ extension Testing::Bug : Testing::TestTrait, Testing::SuiteTrait {
771
+ public var comments: [Testing::Comment] {
772
+ get
773
+ }
774
+ public typealias TestScopeProvider = Swift::Never
775
+ }
776
+ extension Testing::Trait where Self == Testing::Bug {
777
+ public static func bug(_ url: _const Swift::String, _ title: Testing::Comment? = nil) -> Self
778
+ public static func bug(_ url: _const Swift::String? = nil, id: some Numeric, _ title: Testing::Comment? = nil) -> Self
779
+ public static func bug(_ url: _const Swift::String? = nil, id: _const Swift::String, _ title: Testing::Comment? = nil) -> Self
780
+ }
781
+ extension Testing::Test {
782
+ public var associatedBugs: [Testing::Bug] {
783
+ get
784
+ }
785
+ }
786
+ public struct Comment : Swift::RawRepresentable, Swift::Sendable {
787
+ public var rawValue: Swift::String
788
+ public init(rawValue: Swift::String)
789
+ public typealias RawValue = Swift::String
790
+ }
791
+ extension Testing::Comment : Swift::ExpressibleByStringLiteral, Swift::CustomStringConvertible {
792
+ public init(stringLiteral: Swift::String)
793
+ public var description: Swift::String {
794
+ get
795
+ }
796
+ public typealias ExtendedGraphemeClusterLiteralType = Swift::String
797
+ public typealias StringLiteralType = Swift::String
798
+ public typealias UnicodeScalarLiteralType = Swift::String
799
+ }
800
+ extension Testing::Comment : Swift::ExpressibleByStringInterpolation {
801
+ public init(stringInterpolation: Testing::Comment.Testing::StringInterpolation)
802
+ @_documentation(visibility: private) public struct StringInterpolation : Swift::StringInterpolationProtocol, Swift::Sendable {
803
+ @usableFromInline
804
+ internal var rawValue: Swift::String
805
+ public init(literalCapacity: Swift::Int, interpolationCount: Swift::Int)
806
+ @inlinable public mutating func appendLiteral(_ literal: Swift::String) {
807
+ rawValue += literal
808
+ }
809
+ @inlinable public mutating func appendInterpolation(_ value: (some Any)?) {
810
+ rawValue += String(describingForTest: value)
811
+ }
812
+ @inlinable public mutating func appendInterpolation(_ value: (some StringProtocol)?) {
813
+
814
+
815
+
816
+ if let value {
817
+ rawValue += value
818
+ } else {
819
+ rawValue += String(describingForTest: value)
820
+ }
821
+ }
822
+ public typealias StringLiteralType = Swift::String
823
+ }
824
+ }
825
+ extension Testing::Comment : Swift::Equatable, Swift::Hashable {
826
+ }
827
+ extension Testing::Comment : Swift::Codable {
828
+ }
829
+ extension Testing::Comment : Testing::TestTrait, Testing::SuiteTrait {
830
+ public var comments: [Testing::Comment] {
831
+ get
832
+ }
833
+ public typealias TestScopeProvider = Swift::Never
834
+ }
835
+ extension Testing::Test {
836
+ public var comments: [Testing::Comment] {
837
+ get
838
+ }
839
+ }
840
+ extension Testing::Trait where Self == Testing::Comment {
841
+ public static func __line(_ comment: Swift::String) -> Self
842
+ public static func __block(_ comment: Swift::String) -> Self
843
+ public static func __documentationLine(_ comment: Swift::String) -> Self
844
+ public static func __documentationBlock(_ comment: Swift::String) -> Self
845
+ }
846
+ public struct ConditionTrait : Testing::TestTrait, Testing::SuiteTrait {
847
+ public var comments: [Testing::Comment]
848
+ public var sourceLocation: Testing::SourceLocation
849
+ public func evaluate() async throws -> Swift::Bool
850
+ public func prepare(for test: Testing::Test) async throws
851
+ public var isRecursive: Swift::Bool {
852
+ get
853
+ }
854
+ public typealias TestScopeProvider = Swift::Never
855
+ }
856
+ extension Testing::Trait where Self == Testing::ConditionTrait {
857
+ public static func enabled(if condition: @autoclosure @escaping @Sendable () throws -> Swift::Bool, _ comment: Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) -> Self
858
+ public static func enabled(_ comment: Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, _ condition: @escaping @Sendable () async throws -> Swift::Bool) -> Self
859
+ public static func disabled(_ comment: Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) -> Self
860
+ public static func disabled(if condition: @autoclosure @escaping @Sendable () throws -> Swift::Bool, _ comment: Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation) -> Self
861
+ public static func disabled(_ comment: Testing::Comment? = nil, sourceLocation: Testing::SourceLocation = #_sourceLocation, _ condition: @escaping @Sendable () async throws -> Swift::Bool) -> Self
862
+ }
863
+ extension Testing::Trait where Self == Testing::ConditionTrait {
864
+ public static func __available(_ platformName: Swift::String, introduced version: (major: Swift::UInt64, minor: Swift::UInt64?, patch: Swift::UInt64?)?, message: Testing::Comment?, sourceLocation: Testing::SourceLocation, _ condition: @escaping @Sendable () -> Swift::Bool) -> Self
865
+ public static func __available(_ platformName: Swift::String, obsoleted version: (major: Swift::UInt64, minor: Swift::UInt64?, patch: Swift::UInt64?)?, message: Testing::Comment?, sourceLocation: Testing::SourceLocation, _ condition: @escaping @Sendable () -> Swift::Bool) -> Self
866
+ public static func __unavailable(message: Testing::Comment?, sourceLocation: Testing::SourceLocation) -> Self
867
+ public static func __unavailableInEmbedded(sourceLocation: Testing::SourceLocation) -> Self
868
+ }
869
+ public struct IssueHandlingTrait : Testing::TestTrait, Testing::SuiteTrait {
870
+ public func handleIssue(_ issue: Testing::Issue) -> Testing::Issue?
871
+ public var isRecursive: Swift::Bool {
872
+ get
873
+ }
874
+ public typealias TestScopeProvider = Testing::IssueHandlingTrait
875
+ }
876
+ extension Testing::IssueHandlingTrait : Testing::TestScoping {
877
+ public func scopeProvider(for test: Testing::Test, testCase: Testing::Test.Testing::Case?) -> Testing::IssueHandlingTrait?
878
+ public func provideScope(for test: Testing::Test, testCase: Testing::Test.Testing::Case?, performing function: @Sendable () async throws -> Swift::Void) async throws
879
+ }
880
+ extension Testing::Trait where Self == Testing::IssueHandlingTrait {
881
+ public static func compactMapIssues(_ transform: @escaping @Sendable (Testing::Issue) -> Testing::Issue?) -> Self
882
+ public static func filterIssues(_ isIncluded: @escaping @Sendable (Testing::Issue) -> Swift::Bool) -> Self
883
+ }
884
+ public struct ParallelizationTrait : Testing::TestTrait, Testing::SuiteTrait {
885
+ public typealias TestScopeProvider = Testing::ParallelizationTrait
886
+ }
887
+ extension Testing::ParallelizationTrait {
888
+ public var isRecursive: Swift::Bool {
889
+ get
890
+ }
891
+ public func prepare(for test: Testing::Test) async throws
892
+ }
893
+ extension Testing::ParallelizationTrait : Testing::TestScoping {
894
+ public func scopeProvider(for test: Testing::Test, testCase: Testing::Test.Testing::Case?) -> Testing::ParallelizationTrait?
895
+ public func provideScope(for test: Testing::Test, testCase: Testing::Test.Testing::Case?, performing function: @Sendable () async throws -> Swift::Void) async throws
896
+ }
897
+ extension Testing::Trait where Self == Testing::ParallelizationTrait {
898
+ public static var serialized: Testing::ParallelizationTrait {
899
+ get
900
+ }
901
+ }
902
+ extension Testing::ParallelizationTrait : Swift::CustomStringConvertible {
903
+ public var description: Swift::String {
904
+ get
905
+ }
906
+ }
907
+ extension Testing::Tag {
908
+ public struct List {
909
+ public var tags: [Testing::Tag]
910
+ }
911
+ }
912
+ extension Testing::Tag.Testing::List : Swift::Equatable, Swift::Hashable {
913
+ public static func == (a: Testing::Tag.Testing::List, b: Testing::Tag.Testing::List) -> Swift::Bool
914
+ public func hash(into hasher: inout Swift::Hasher)
915
+ public var hashValue: Swift::Int {
916
+ get
917
+ }
918
+ }
919
+ extension Testing::Tag.Testing::List : Swift::CustomStringConvertible {
920
+ public var description: Swift::String {
921
+ get
922
+ }
923
+ }
924
+ extension Testing::Tag.Testing::List : Testing::TestTrait, Testing::SuiteTrait {
925
+ public var isRecursive: Swift::Bool {
926
+ get
927
+ }
928
+ public typealias TestScopeProvider = Swift::Never
929
+ }
930
+ extension Testing::Trait where Self == Testing::Tag.Testing::List {
931
+ public static func tags(_ tags: Testing::Tag...) -> Self
932
+ }
933
+ public struct Tag : Swift::Sendable {
934
+ }
935
+ extension Testing::Tag : Swift::CustomStringConvertible {
936
+ public var description: Swift::String {
937
+ get
938
+ }
939
+ }
940
+ extension Testing::Tag : Swift::Equatable, Swift::Hashable, Swift::Comparable {
941
+ public static func < (lhs: Testing::Tag, rhs: Testing::Tag) -> Swift::Bool
942
+ public static func == (a: Testing::Tag, b: Testing::Tag) -> Swift::Bool
943
+ public func hash(into hasher: inout Swift::Hasher)
944
+ public var hashValue: Swift::Int {
945
+ get
946
+ }
947
+ }
948
+ extension Testing::Tag : Swift::Codable, Swift::CodingKeyRepresentable {
949
+ public init(from decoder: any Swift::Decoder) throws
950
+ public func encode(to encoder: any Swift::Encoder) throws
951
+ @available(macOS 12.3, iOS 15.4, watchOS 8.5, tvOS 15.4, *)
952
+ public var codingKey: any Swift::CodingKey {
953
+ get
954
+ }
955
+ @available(macOS 12.3, iOS 15.4, watchOS 8.5, tvOS 15.4, *)
956
+ public init?<T>(codingKey: T) where T : Swift::CodingKey
957
+ }
958
+ extension Testing::Test {
959
+ public var tags: Swift::Set<Testing::Tag> {
960
+ get
961
+ }
962
+ }
963
+ extension Testing::Tag {
964
+ public static func __fromStaticMember(of type: any Any.Type, _ name: _const Swift::String) -> Testing::Tag
965
+ }
966
+ @attached(accessor) @attached(peer) public macro Tag() = #externalMacro(module: "TestingMacros", type: "TagMacro")
967
+ @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
968
+ public struct TimeLimitTrait : Testing::TestTrait, Testing::SuiteTrait {
969
+ public struct Duration : Swift::Sendable {
970
+ public static func minutes(_ minutes: some BinaryInteger) -> Testing::TimeLimitTrait.Testing::Duration
971
+ }
972
+ public var timeLimit: Swift::Duration
973
+ public var isRecursive: Swift::Bool {
974
+ get
975
+ }
976
+ @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *)
977
+ public typealias TestScopeProvider = Swift::Never
978
+ }
979
+ @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
980
+ extension Testing::Trait where Self == Testing::TimeLimitTrait {
981
+ public static func timeLimit(_ timeLimit: Testing::TimeLimitTrait.Testing::Duration) -> Self
982
+ }
983
+ @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
984
+ extension Testing::TimeLimitTrait.Testing::Duration {
985
+ @available(*, unavailable, message: "Time limit must be specified in minutes")
986
+ public static func seconds(_ seconds: some BinaryInteger) -> Testing::TimeLimitTrait.Testing::Duration
987
+ @available(*, unavailable, message: "Time limit must be specified in minutes")
988
+ public static func seconds(_ seconds: Swift::Double) -> Testing::TimeLimitTrait.Testing::Duration
989
+ @available(*, unavailable, message: "Time limit must be specified in minutes")
990
+ public static func milliseconds(_ milliseconds: some BinaryInteger) -> Testing::TimeLimitTrait.Testing::Duration
991
+ @available(*, unavailable, message: "Time limit must be specified in minutes")
992
+ public static func milliseconds(_ milliseconds: Swift::Double) -> Testing::TimeLimitTrait.Testing::Duration
993
+ @available(*, unavailable, message: "Time limit must be specified in minutes")
994
+ public static func microseconds(_ microseconds: some BinaryInteger) -> Testing::TimeLimitTrait.Testing::Duration
995
+ @available(*, unavailable, message: "Time limit must be specified in minutes")
996
+ public static func microseconds(_ microseconds: Swift::Double) -> Testing::TimeLimitTrait.Testing::Duration
997
+ @available(*, unavailable, message: "Time limit must be specified in minutes")
998
+ public static func nanoseconds(_ nanoseconds: some BinaryInteger) -> Testing::TimeLimitTrait.Testing::Duration
999
+ }
1000
+ @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
1001
+ extension Testing::Test {
1002
+ public var timeLimit: Swift::Duration? {
1003
+ get
1004
+ }
1005
+ }
1006
+ public protocol Trait : Swift::Sendable {
1007
+ func prepare(for test: Testing::Test) async throws
1008
+ var comments: [Testing::Comment] { get }
1009
+ associatedtype TestScopeProvider : Testing::TestScoping = Swift::Never
1010
+ func scopeProvider(for test: Testing::Test, testCase: Testing::Test.Testing::Case?) -> Self.TestScopeProvider?
1011
+ }
1012
+ public protocol TestScoping : Swift::Sendable {
1013
+ func provideScope(for test: Testing::Test, testCase: Testing::Test.Testing::Case?, performing function: @Sendable () async throws -> Swift::Void) async throws
1014
+ }
1015
+ extension Testing::Trait where Self : Testing::TestScoping {
1016
+ public func scopeProvider(for test: Testing::Test, testCase: Testing::Test.Testing::Case?) -> Self?
1017
+ }
1018
+ extension Testing::SuiteTrait where Self : Testing::TestScoping {
1019
+ public func scopeProvider(for test: Testing::Test, testCase: Testing::Test.Testing::Case?) -> Self?
1020
+ }
1021
+ extension Swift::Never : Testing::TestScoping {
1022
+ public func provideScope(for test: Testing::Test, testCase: Testing::Test.Testing::Case?, performing function: @Sendable () async throws -> Swift::Void) async throws
1023
+ }
1024
+ public protocol TestTrait : Testing::Trait {
1025
+ }
1026
+ public protocol SuiteTrait : Testing::Trait {
1027
+ var isRecursive: Swift::Bool { get }
1028
+ }
1029
+ extension Testing::Trait {
1030
+ public func prepare(for test: Testing::Test) async throws
1031
+ public var comments: [Testing::Comment] {
1032
+ get
1033
+ }
1034
+ }
1035
+ extension Testing::Trait where Self.TestScopeProvider == Swift::Never {
1036
+ public func scopeProvider(for test: Testing::Test, testCase: Testing::Test.Testing::Case?) -> Swift::Never?
1037
+ }
1038
+ extension Testing::SuiteTrait {
1039
+ public var isRecursive: Swift::Bool {
1040
+ get
1041
+ }
1042
+ }
1043
+ extension Testing::Issue.Testing::Severity : Swift::Hashable {}