File tree Expand file tree Collapse file tree 6 files changed +14
-11
lines changed
Sources/ComposableArchitecture
Tests/ComposableArchitectureTests Expand file tree Collapse file tree 6 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ extension ActionSheetState: CustomDumpReflectable {
144144 children: [
145145 " title " : self . title,
146146 " message " : self . message as Any ,
147- " buttons " : self . buttons
147+ " buttons " : self . buttons,
148148 ] ,
149149 displayStyle: . struct
150150 )
Original file line number Diff line number Diff line change 1- import SwiftUI
21import CustomDump
2+ import SwiftUI
33
44/// A data type that describes the state of an alert that can be shown to the user. The `Action`
55/// generic is the type of actions that can be sent from tapping on a button in the alert.
@@ -214,7 +214,7 @@ extension AlertState: CustomDumpReflectable {
214214 " title " : self . title,
215215 " message " : self . message as Any ,
216216 " primaryButton " : self . primaryButton as Any ,
217- " secondaryButton " : self . secondaryButton as Any
217+ " secondaryButton " : self . secondaryButton as Any ,
218218 ] ,
219219 displayStyle: . struct
220220 )
Original file line number Diff line number Diff line change 1- import SwiftUI
21import CustomDump
2+ import SwiftUI
33
44/// An action that describes simple mutations to some root state at a writable key path.
55///
Original file line number Diff line number Diff line change 367367 ) {
368368 if expected != actual {
369369 let difference =
370- diff ( expected, actual, format: . proportional)
370+ diff ( expected, actual, format: . proportional)
371371 . map { " \( $0. indent ( by: 4 ) ) \n \n (Expected: −, Actual: +) " }
372372 ?? """
373373 Expected:
409409 let ( receivedAction, state) = self . receivedActions. removeFirst ( )
410410 if expectedAction != receivedAction {
411411 let difference =
412- diff ( expectedAction, receivedAction, format: . proportional)
412+ diff ( expectedAction, receivedAction, format: . proportional)
413413 . map { " \( $0. indent ( by: 4 ) ) \n \n (Expected: −, Received: +) " }
414414 ?? """
415415 Expected:
Original file line number Diff line number Diff line change 1- import CustomDump
21import Combine
2+ import CustomDump
33import XCTest
44
55@testable import ComposableArchitecture
@@ -18,8 +18,8 @@ final class DebugTests: XCTestCase {
1818 dump = " "
1919 customDump (
2020 TextState ( " Hello, " )
21- + TextState( " world " ) . bold ( ) . italic ( )
22- + TextState( " ! " ) ,
21+ + TextState( " world " ) . bold ( ) . italic ( )
22+ + TextState( " ! " ) ,
2323 to: & dump
2424 )
2525 XCTAssertNoDifference (
Original file line number Diff line number Diff line change 11import Combine
22import CombineSchedulers
33import ComposableArchitecture
4+ import CustomDump
45import XCTest
56import os. signpost
6- import CustomDump
77
88final class ReducerTests : XCTestCase {
99 var cancellables : Set < AnyCancellable > = [ ]
@@ -219,5 +219,8 @@ final class ReducerTests: XCTestCase {
219219 }
220220}
221221
222- enum DebugAction : Equatable { case incrWithBool( Bool ) , incr, noop }
222+ enum DebugAction : Equatable {
223+ case incrWithBool( Bool )
224+ case incr, noop
225+ }
223226struct DebugState : Equatable { var count = 0 }
You can’t perform that action at this time.
0 commit comments