-
Notifications
You must be signed in to change notification settings - Fork 24
Navigator_ReplacePathInvocation
ohitsdaniel edited this page Apr 29, 2021
·
2 revisions
Testing helper
struct ReplacePathInvocation: Hashable
var invocations = [Navigator.ReplacePathInvocation]()
let expectectedInvocations = [
Navigator.ReplacePathInvocation(path: [testScreen.eraseToAnyScreen()])
]
let sut = Navigator.mock(
path: { self.path },
replacePath: { path in
invocations.append(.init(path: path))
}
)
sut.replace(path: [testScreen.eraseToAnyScreen()]) // invoke code that invokes goBack(to:)
XCTAssertEqual(expectectedInvocations, invocations)
Hashable
let path: [AnyScreen]
Generated at 2021-04-29T07:59:04+0000 using swift-doc 1.0.0-beta.6.
Types
- AnyPathBuilder
- AnyScreen
- Deeplink
- DeeplinkComponent
- DeeplinkComponent.Argument
- DeeplinkHandler
- DeeplinkParser
- EitherAB
- EitherABC
- EitherABCD
- EitherABCDE
- EitherABCDEF
- EitherABCDEFG
- EitherABCDEFGH
- EitherABCDEFGHI
- EitherABCDEFGHIJ
- IdentifiedScreen
- NavigationNode
- NavigationTreeBuilder
- Navigator
- Navigator.Datasource
- Navigator.DidAppearInvocation
- Navigator.DismissInvocation
- Navigator.GoBackToInvocation
- Navigator.GoToInvocation
- Navigator.GoToPathInvocation
- Navigator.NavigationIdentifier
- Navigator.ReplaceContentInvocation
- Navigator.ReplacePathInvocation
- Navigator.ReplaceScreenInvocation
- NavigatorKey
- OnDismissView
- PathBuilders
- PathBuilders.EmptyBuilder
- PathBuilders.WildcardView
- PathComponentUpdate
- PathUpdate
- Root
- ScreenPresentationStyle
- TreatSheetDismissAsAppearInPresenterKey
- _PathBuilder