File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
stdlib/private/StdlibUnittest Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1192,6 +1192,12 @@ public final class TestSuite {
1192
1192
PersistentState . complainIfNothingRuns ( )
1193
1193
}
1194
1194
1195
+ // This method is prohibited from inlining because inlining the test harness
1196
+ // into the test is not interesting from the runtime performance perspective.
1197
+ // And it does not really make the test cases more effectively at testing the
1198
+ // optimizer from a correctness prospective. On the contrary, it sometimes
1199
+ // severely affects the compile time of the test code.
1200
+ @inline ( never)
1195
1201
public func test(
1196
1202
_ name: String ,
1197
1203
file: String = #file, line: UInt = #line,
@@ -1201,6 +1207,12 @@ public final class TestSuite {
1201
1207
. code ( testFunction)
1202
1208
}
1203
1209
1210
+ // This method is prohibited from inlining because inlining the test harness
1211
+ // into the test is not interesting from the runtime performance perspective.
1212
+ // And it does not really make the test cases more effectively at testing the
1213
+ // optimizer from a correctness prospective. On the contrary, it sometimes
1214
+ // severely affects the compile time of the test code.
1215
+ @inline ( never)
1204
1216
public func test(
1205
1217
_ name: String , file: String = #file, line: UInt = #line
1206
1218
) -> _TestBuilder {
You can’t perform that action at this time.
0 commit comments