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 @@ -1178,6 +1178,12 @@ public final class TestSuite {
1178
1178
PersistentState . complainIfNothingRuns ( )
1179
1179
}
1180
1180
1181
+ // This method is prohibited from inlining because inlining the test harness
1182
+ // into the test is not interesting from the runtime performance perspective.
1183
+ // And it does not really make the test cases more effectively at testing the
1184
+ // optimizer from a correctness prospective. On the contrary, it sometimes
1185
+ // severely affects the compile time of the test code.
1186
+ @inline ( never)
1181
1187
public func test(
1182
1188
_ name: String ,
1183
1189
file: String = #file, line: UInt = #line,
@@ -1187,6 +1193,12 @@ public final class TestSuite {
1187
1193
. code ( testFunction)
1188
1194
}
1189
1195
1196
+ // This method is prohibited from inlining because inlining the test harness
1197
+ // into the test is not interesting from the runtime performance perspective.
1198
+ // And it does not really make the test cases more effectively at testing the
1199
+ // optimizer from a correctness prospective. On the contrary, it sometimes
1200
+ // severely affects the compile time of the test code.
1201
+ @inline ( never)
1190
1202
public func test(
1191
1203
_ name: String , file: String = #file, line: UInt = #line
1192
1204
) -> _TestBuilder {
You can’t perform that action at this time.
0 commit comments