Files
swift-mirror/test/refactoring/ReplaceBodiesWithFatalError/requires-env-var.swift
Huon Wilson 75313cfed5 [IDE] make replace.bodies.with.fatalError an internal refactoring.
This shouldn't be exposed to general users.
2018-04-17 09:05:26 +10:00

17 lines
640 B
Swift

var bar: Int {
return 0
}
// CHECK-NO-ENV-LABEL: Action begins
// CHECK-NO-ENV-NEXT: Action ends
// CHECK-ENV-LABEL: Action begins
// CHECK-ENV-NEXT: Replace Function Bodies With 'fatalError()'
// CHECK-ENV-NEXT: Action ends
// replace.bodies.with.fatalError/-replace-bodies-with-fatalError should only be
// found if the appropriate environment variable is set.
// RUN: %refactor -actions -source-filename %s -pos=1:1 -end-pos=3:2 | %FileCheck %s -check-prefix CHECK-NO-ENV
// RUN: env SWIFT_ENABLE_INTERNAL_REFACTORING_ACTIONS=1 %refactor -actions -source-filename %s -pos=1:1 -end-pos=3:2 | %FileCheck %s -check-prefix CHECK-ENV