Skip to content

Commit 8b9c943

Browse files
authored
Merge pull request #21881 from nkcsgexi/test-mig-disable-fixit
migrator/test: disable fixits while testing rename migration pass.
2 parents 372834b + f8dd31b commit 8b9c943

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/Migrator/rename.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: objc_interop
2-
// RUN: %empty-directory(%t) && %target-swift-frontend -c -update-code -primary-file %s -F %S/mock-sdk -api-diff-data-file %S/Inputs/API.json -emit-migrated-file-path %t/rename.swift.result -emit-remap-file-path %t/rename.swift.remap -o /dev/null
2+
// RUN: %empty-directory(%t) && %target-swift-frontend -c -update-code -primary-file %s -F %S/mock-sdk -api-diff-data-file %S/Inputs/API.json -emit-migrated-file-path %t/rename.swift.result -emit-remap-file-path %t/rename.swift.remap -o /dev/null -disable-migrator-fixits
33
// RUN: diff -u %S/rename.swift.expected %t/rename.swift.result
44

55
import Bar

test/Migrator/rename.swift.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: objc_interop
2-
// RUN: %empty-directory(%t) && %target-swift-frontend -c -update-code -primary-file %s -F %S/mock-sdk -api-diff-data-file %S/Inputs/API.json -emit-migrated-file-path %t/rename.swift.result -emit-remap-file-path %t/rename.swift.remap -o /dev/null
2+
// RUN: %empty-directory(%t) && %target-swift-frontend -c -update-code -primary-file %s -F %S/mock-sdk -api-diff-data-file %S/Inputs/API.json -emit-migrated-file-path %t/rename.swift.result -emit-remap-file-path %t/rename.swift.remap -o /dev/null -disable-migrator-fixits
33
// RUN: diff -u %S/rename.swift.expected %t/rename.swift.result
44

55
import Bar
@@ -16,7 +16,7 @@ func foo(_ b: BarForwardDeclaredClass) {
1616
b.barNewInstanceFunc1(newlabel1: 0, newlabel2: 1, newlabel3: 2, newlabel4: 3)
1717
barGlobalFuncNewName(newlabel: 2)
1818
_ = NewEnum.enumElement
19-
_ = PropertyUserInterface.newMethodPlus()
19+
_ = PropertyUserInterface.newMethodPlus()!
2020
let _: BarBase.Nested
2121
_ = AwesomeWrapper.newName(is: 0, at: 1, for: 2)
2222
}

0 commit comments

Comments
 (0)