Skip to content

Commit f8dd31b

Browse files
committed
migrator/test: disable fixits while testing rename migration pass.
The migration under testing is entirely driven by migration scripts. Having fixits enabled may cause red herring.
1 parent 68292d1 commit f8dd31b

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)