Skip to content

Commit a36e28e

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 3927f26 commit a36e28e

File tree

4 files changed

+41
-41
lines changed

4 files changed

+41
-41
lines changed

Sources/ComposableArchitecture/Observation/NavigationStack+Observation.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ extension Binding {
7171
}
7272

7373
extension ObservedObject.Wrapper {
74-
#if swift(>=5.10)
75-
@preconcurrency@MainActor
76-
#else
77-
@MainActor(unsafe)
78-
#endif
74+
#if swift(>=5.10)
75+
@preconcurrency@MainActor
76+
#else
77+
@MainActor(unsafe)
78+
#endif
7979
public func scope<State: ObservableState, Action, ElementState, ElementAction>(
8080
state: KeyPath<State, StackState<ElementState>>,
8181
action: CaseKeyPath<Action, StackAction<ElementState, ElementAction>>

Tests/ComposableArchitectureTests/Internal/BaseTCATestCase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class BaseTCATestCase: XCTestCase {
55
override func tearDown() async throws {
66
try await super.tearDown()
77
let description = "\(self)"
8-
_cancellationCancellables.withValue {
8+
_cancellationCancellables.withValue {
99
XCTAssertEqual($0.count, 0, description)
1010
$0.removeAll()
1111
}

Tests/ComposableArchitectureTests/Reducers/PresentationReducerTests.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2634,20 +2634,20 @@ final class PresentationReducerTests: BaseTCATestCase {
26342634
.ifLet(\.$alert, action: /Action.alert)
26352635
}
26362636
}
2637-
// @MainActor
2638-
// func testEphemeralBindingDismissal() async {
2639-
// @Perception.Bindable var store = Store(
2640-
// initialState: TestEphemeralBindingDismissalFeature.State(
2641-
// alert: AlertState { TextState("Oops!") }
2642-
// )
2643-
// ) {
2644-
// TestEphemeralBindingDismissalFeature()
2645-
// }
2646-
//
2647-
// XCTAssertNotNil(store.alert)
2648-
// $store.scope(state: \.alert, action: \.alert).wrappedValue = nil
2649-
// XCTAssertNil(store.alert)
2650-
// }
2637+
// @MainActor
2638+
// func testEphemeralBindingDismissal() async {
2639+
// @Perception.Bindable var store = Store(
2640+
// initialState: TestEphemeralBindingDismissalFeature.State(
2641+
// alert: AlertState { TextState("Oops!") }
2642+
// )
2643+
// ) {
2644+
// TestEphemeralBindingDismissalFeature()
2645+
// }
2646+
//
2647+
// XCTAssertNotNil(store.alert)
2648+
// $store.scope(state: \.alert, action: \.alert).wrappedValue = nil
2649+
// XCTAssertNil(store.alert)
2650+
// }
26512651
#endif
26522652
}
26532653

Tests/ComposableArchitectureTests/StoreTests.swift

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,27 +1103,27 @@ final class StoreTests: BaseTCATestCase {
11031103
var body: some ReducerOf<Self> { EmptyReducer() }
11041104
}
11051105

1106-
// #if !os(visionOS)
1107-
// @MainActor
1108-
// func testInvalidatedStoreScope() async throws {
1109-
// @Perception.Bindable var store = Store(
1110-
// initialState: InvalidatedStoreScopeParentFeature.State(
1111-
// child: InvalidatedStoreScopeChildFeature.State(
1112-
// grandchild: InvalidatedStoreScopeGrandchildFeature.State()
1113-
// )
1114-
// )
1115-
// ) {
1116-
// InvalidatedStoreScopeParentFeature()
1117-
// }
1118-
// store.send(.tap)
1119-
//
1120-
// @Perception.Bindable var childStore = store.scope(state: \.child, action: \.child)!
1121-
// let grandchildStoreBinding = $childStore.scope(state: \.grandchild, action: \.grandchild)
1122-
//
1123-
// store.send(.child(.dismiss))
1124-
// grandchildStoreBinding.wrappedValue = nil
1125-
// }
1126-
// #endif
1106+
// #if !os(visionOS)
1107+
// @MainActor
1108+
// func testInvalidatedStoreScope() async throws {
1109+
// @Perception.Bindable var store = Store(
1110+
// initialState: InvalidatedStoreScopeParentFeature.State(
1111+
// child: InvalidatedStoreScopeChildFeature.State(
1112+
// grandchild: InvalidatedStoreScopeGrandchildFeature.State()
1113+
// )
1114+
// )
1115+
// ) {
1116+
// InvalidatedStoreScopeParentFeature()
1117+
// }
1118+
// store.send(.tap)
1119+
//
1120+
// @Perception.Bindable var childStore = store.scope(state: \.child, action: \.child)!
1121+
// let grandchildStoreBinding = $childStore.scope(state: \.grandchild, action: \.grandchild)
1122+
//
1123+
// store.send(.child(.dismiss))
1124+
// grandchildStoreBinding.wrappedValue = nil
1125+
// }
1126+
// #endif
11271127

11281128
@MainActor
11291129
func testSurroundingDependencies() {

0 commit comments

Comments
 (0)