|
1 |
| -import Foundation |
2 |
| -import XCTestDynamicOverlay |
3 |
| - |
4 |
| -func MyXCTFail(_ message: String) { |
5 |
| - XCTFail(message) |
6 |
| -} |
7 |
| - |
8 |
| -#if canImport(ObjectiveC) |
9 |
| - func MyXCTExpectFailure( |
10 |
| - _ failureReason: String, |
11 |
| - enabled: Bool = true, |
12 |
| - strict: Bool = true, |
13 |
| - failingBlock: () -> Void, |
14 |
| - issueMatcher: ((_XCTIssue) -> Bool)? = nil |
15 |
| - ) { |
16 |
| - XCTExpectFailure( |
17 |
| - failureReason, |
18 |
| - enabled: enabled, |
19 |
| - strict: strict, |
20 |
| - failingBlock: failingBlock, |
21 |
| - issueMatcher: issueMatcher |
22 |
| - ) |
23 |
| - } |
24 |
| - |
25 |
| - func MyXCTExpectFailure( |
26 |
| - _ failureReason: String, |
27 |
| - enabled: Bool = true, |
28 |
| - strict: Bool = true, |
29 |
| - issueMatcher: ((_XCTIssue) -> Bool)? = nil |
30 |
| - ) { |
31 |
| - XCTExpectFailure( |
32 |
| - failureReason, |
33 |
| - enabled: enabled, |
34 |
| - strict: strict, |
35 |
| - issueMatcher: issueMatcher |
36 |
| - ) |
37 |
| - } |
38 |
| -#endif |
39 |
| - |
40 |
| -@available(*, deprecated) |
41 |
| -struct Client { |
42 |
| - var p00: () -> Int |
43 |
| - var p01: () throws -> Int |
44 |
| - var p02: () async -> Int |
45 |
| - var p03: () async throws -> Int |
46 |
| - var p04: (Int) -> Int |
47 |
| - var p05: (Int) throws -> Int |
48 |
| - var p06: (Int) async -> Int |
49 |
| - var p07: (Int) async throws -> Int |
50 |
| - var p08: (Int, Int) -> Int |
51 |
| - var p09: (Int, Int) throws -> Int |
52 |
| - var p10: (Int, Int) async -> Int |
53 |
| - var p11: (Int, Int) async throws -> Int |
54 |
| - var p12: (Int, Int, Int) -> Int |
55 |
| - var p13: (Int, Int, Int) throws -> Int |
56 |
| - var p14: (Int, Int, Int) async -> Int |
57 |
| - var p15: (Int, Int, Int) async throws -> Int |
58 |
| - var p16: (Int, Int, Int, Int) -> Int |
59 |
| - var p17: (Int, Int, Int, Int) throws -> Int |
60 |
| - var p18: (Int, Int, Int, Int) async -> Int |
61 |
| - var p19: (Int, Int, Int, Int) async throws -> Int |
62 |
| - var p20: (Int, Int, Int, Int, Int) -> Int |
63 |
| - var p21: (Int, Int, Int, Int, Int) throws -> Int |
64 |
| - var p22: (Int, Int, Int, Int, Int) async -> Int |
65 |
| - var p23: (Int, Int, Int, Int, Int) async throws -> Int |
66 |
| - |
67 |
| - static var testValue: Self { |
68 |
| - Self( |
69 |
| - p00: unimplemented("\(Self.self).p00"), |
70 |
| - p01: unimplemented("\(Self.self).p01"), |
71 |
| - p02: unimplemented("\(Self.self).p02"), |
72 |
| - p03: unimplemented("\(Self.self).p03"), |
73 |
| - p04: unimplemented("\(Self.self).p04"), |
74 |
| - p05: unimplemented("\(Self.self).p05"), |
75 |
| - p06: unimplemented("\(Self.self).p06"), |
76 |
| - p07: unimplemented("\(Self.self).p07"), |
77 |
| - p08: unimplemented("\(Self.self).p08"), |
78 |
| - p09: unimplemented("\(Self.self).p09"), |
79 |
| - p10: unimplemented("\(Self.self).p10"), |
80 |
| - p11: unimplemented("\(Self.self).p11"), |
81 |
| - p12: unimplemented("\(Self.self).p12"), |
82 |
| - p13: unimplemented("\(Self.self).p13"), |
83 |
| - p14: unimplemented("\(Self.self).p14"), |
84 |
| - p15: unimplemented("\(Self.self).p15"), |
85 |
| - p16: unimplemented("\(Self.self).p16"), |
86 |
| - p17: unimplemented("\(Self.self).p17"), |
87 |
| - p18: unimplemented("\(Self.self).p18"), |
88 |
| - p19: unimplemented("\(Self.self).p19"), |
89 |
| - p20: unimplemented("\(Self.self).p20"), |
90 |
| - p21: unimplemented("\(Self.self).p21"), |
91 |
| - p22: unimplemented("\(Self.self).p22"), |
92 |
| - p23: unimplemented("\(Self.self).p23") |
93 |
| - ) |
94 |
| - } |
95 |
| -} |
96 |
| - |
97 |
| -struct User { let id: UUID } |
98 |
| - |
99 |
| -@MainActor let f00: () -> Int = unimplemented("f00", placeholder: 42) |
100 |
| -@MainActor let f01: (String) -> Int = unimplemented("f01", placeholder: 42) |
101 |
| -@MainActor let f02: (String, Int) -> Int = unimplemented("f02", placeholder: 42) |
102 |
| -@MainActor let f03: (String, Int, Double) -> Int = unimplemented("f03", placeholder: 42) |
103 |
| -@MainActor let f04: (String, Int, Double, [Int]) -> Int = unimplemented("f04", placeholder: 42) |
104 |
| -@MainActor let f05: (String, Int, Double, [Int], User) -> Int = unimplemented( |
105 |
| - "f05", placeholder: 42) |
106 |
| - |
107 |
| -@available(*, deprecated) |
108 |
| -@MainActor let fm00: () -> Int = unimplemented("fm00") |
109 |
| - |
110 |
| -@available(*, deprecated) |
111 |
| -@MainActor let fm01: @MainActor () -> Int = unimplemented("fm01") |
112 |
| - |
113 |
| -private struct Autoclosing { |
114 |
| - init( |
115 |
| - _: @autoclosure () -> Int = unimplemented(placeholder: 0), |
116 |
| - _: @autoclosure () async -> Int = unimplemented(placeholder: 0), |
117 |
| - _: @autoclosure () throws -> Int = unimplemented(placeholder: 0), |
118 |
| - _: @autoclosure () async throws -> Int = unimplemented(placeholder: 0) |
119 |
| - ) async {} |
120 |
| -} |
| 1 | +//import Foundation |
| 2 | +//import XCTestDynamicOverlay |
| 3 | +// |
| 4 | +//func MyXCTFail(_ message: String) { |
| 5 | +// XCTFail(message) |
| 6 | +//} |
| 7 | +// |
| 8 | +//#if canImport(ObjectiveC) |
| 9 | +// func MyXCTExpectFailure( |
| 10 | +// _ failureReason: String, |
| 11 | +// enabled: Bool = true, |
| 12 | +// strict: Bool = true, |
| 13 | +// failingBlock: () -> Void, |
| 14 | +// issueMatcher: ((_XCTIssue) -> Bool)? = nil |
| 15 | +// ) { |
| 16 | +// XCTExpectFailure( |
| 17 | +// failureReason, |
| 18 | +// enabled: enabled, |
| 19 | +// strict: strict, |
| 20 | +// failingBlock: failingBlock, |
| 21 | +// issueMatcher: issueMatcher |
| 22 | +// ) |
| 23 | +// } |
| 24 | +// |
| 25 | +// func MyXCTExpectFailure( |
| 26 | +// _ failureReason: String, |
| 27 | +// enabled: Bool = true, |
| 28 | +// strict: Bool = true, |
| 29 | +// issueMatcher: ((_XCTIssue) -> Bool)? = nil |
| 30 | +// ) { |
| 31 | +// XCTExpectFailure( |
| 32 | +// failureReason, |
| 33 | +// enabled: enabled, |
| 34 | +// strict: strict, |
| 35 | +// issueMatcher: issueMatcher |
| 36 | +// ) |
| 37 | +// } |
| 38 | +//#endif |
| 39 | +// |
| 40 | +//@available(*, deprecated) |
| 41 | +//struct Client { |
| 42 | +// var p00: () -> Int |
| 43 | +// var p01: () throws -> Int |
| 44 | +// var p02: () async -> Int |
| 45 | +// var p03: () async throws -> Int |
| 46 | +// var p04: (Int) -> Int |
| 47 | +// var p05: (Int) throws -> Int |
| 48 | +// var p06: (Int) async -> Int |
| 49 | +// var p07: (Int) async throws -> Int |
| 50 | +// var p08: (Int, Int) -> Int |
| 51 | +// var p09: (Int, Int) throws -> Int |
| 52 | +// var p10: (Int, Int) async -> Int |
| 53 | +// var p11: (Int, Int) async throws -> Int |
| 54 | +// var p12: (Int, Int, Int) -> Int |
| 55 | +// var p13: (Int, Int, Int) throws -> Int |
| 56 | +// var p14: (Int, Int, Int) async -> Int |
| 57 | +// var p15: (Int, Int, Int) async throws -> Int |
| 58 | +// var p16: (Int, Int, Int, Int) -> Int |
| 59 | +// var p17: (Int, Int, Int, Int) throws -> Int |
| 60 | +// var p18: (Int, Int, Int, Int) async -> Int |
| 61 | +// var p19: (Int, Int, Int, Int) async throws -> Int |
| 62 | +// var p20: (Int, Int, Int, Int, Int) -> Int |
| 63 | +// var p21: (Int, Int, Int, Int, Int) throws -> Int |
| 64 | +// var p22: (Int, Int, Int, Int, Int) async -> Int |
| 65 | +// var p23: (Int, Int, Int, Int, Int) async throws -> Int |
| 66 | +// |
| 67 | +// static var testValue: Self { |
| 68 | +// Self( |
| 69 | +// p00: unimplemented("\(Self.self).p00"), |
| 70 | +// p01: unimplemented("\(Self.self).p01"), |
| 71 | +// p02: unimplemented("\(Self.self).p02"), |
| 72 | +// p03: unimplemented("\(Self.self).p03"), |
| 73 | +// p04: unimplemented("\(Self.self).p04"), |
| 74 | +// p05: unimplemented("\(Self.self).p05"), |
| 75 | +// p06: unimplemented("\(Self.self).p06"), |
| 76 | +// p07: unimplemented("\(Self.self).p07"), |
| 77 | +// p08: unimplemented("\(Self.self).p08"), |
| 78 | +// p09: unimplemented("\(Self.self).p09"), |
| 79 | +// p10: unimplemented("\(Self.self).p10"), |
| 80 | +// p11: unimplemented("\(Self.self).p11"), |
| 81 | +// p12: unimplemented("\(Self.self).p12"), |
| 82 | +// p13: unimplemented("\(Self.self).p13"), |
| 83 | +// p14: unimplemented("\(Self.self).p14"), |
| 84 | +// p15: unimplemented("\(Self.self).p15"), |
| 85 | +// p16: unimplemented("\(Self.self).p16"), |
| 86 | +// p17: unimplemented("\(Self.self).p17"), |
| 87 | +// p18: unimplemented("\(Self.self).p18"), |
| 88 | +// p19: unimplemented("\(Self.self).p19"), |
| 89 | +// p20: unimplemented("\(Self.self).p20"), |
| 90 | +// p21: unimplemented("\(Self.self).p21"), |
| 91 | +// p22: unimplemented("\(Self.self).p22"), |
| 92 | +// p23: unimplemented("\(Self.self).p23") |
| 93 | +// ) |
| 94 | +// } |
| 95 | +//} |
| 96 | +// |
| 97 | +//struct User { let id: UUID } |
| 98 | +// |
| 99 | +//@MainActor let f00: () -> Int = unimplemented("f00", placeholder: 42) |
| 100 | +//@MainActor let f01: (String) -> Int = unimplemented("f01", placeholder: 42) |
| 101 | +//@MainActor let f02: (String, Int) -> Int = unimplemented("f02", placeholder: 42) |
| 102 | +//@MainActor let f03: (String, Int, Double) -> Int = unimplemented("f03", placeholder: 42) |
| 103 | +//@MainActor let f04: (String, Int, Double, [Int]) -> Int = unimplemented("f04", placeholder: 42) |
| 104 | +//@MainActor let f05: (String, Int, Double, [Int], User) -> Int = unimplemented( |
| 105 | +// "f05", placeholder: 42) |
| 106 | +// |
| 107 | +//@available(*, deprecated) |
| 108 | +//@MainActor let fm00: () -> Int = unimplemented("fm00") |
| 109 | +// |
| 110 | +//@available(*, deprecated) |
| 111 | +//@MainActor let fm01: @MainActor () -> Int = unimplemented("fm01") |
| 112 | +// |
| 113 | +//private struct Autoclosing { |
| 114 | +// init( |
| 115 | +// _: @autoclosure () -> Int = unimplemented(placeholder: 0), |
| 116 | +// _: @autoclosure () async -> Int = unimplemented(placeholder: 0), |
| 117 | +// _: @autoclosure () throws -> Int = unimplemented(placeholder: 0), |
| 118 | +// _: @autoclosure () async throws -> Int = unimplemented(placeholder: 0) |
| 119 | +// ) async {} |
| 120 | +//} |
0 commit comments