Skip to content
Snippets Groups Projects
Commit 8b28b86b authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Add E2ECallAllReceivedRequests functor

parent d79b5ae6
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
......@@ -13,6 +13,7 @@ public struct E2E {
public var addService: E2EAddService
public var removeService: E2ERemoveService
public var hasAuthenticatedChannel: E2EHasAuthenticatedChannel
public var callAllReceivedRequests: E2ECallAllReceivedRequests
public var send: E2ESend
// TODO:
......@@ -33,6 +34,7 @@ extension E2E {
addService: .live(bindingsE2E),
removeService: .live(bindingsE2E),
hasAuthenticatedChannel: .live(bindingsE2E),
callAllReceivedRequests: .live(bindingsE2E),
send: .live(bindingsE2E)
)
}
......@@ -52,6 +54,7 @@ extension E2E {
addService: .unimplemented,
removeService: .unimplemented,
hasAuthenticatedChannel: .unimplemented,
callAllReceivedRequests: .unimplemented,
send: .unimplemented
)
}
import Bindings
import XCTestDynamicOverlay
public struct E2ECallAllReceivedRequests {
public var run: () -> Void
public func callAsFunction() {
run()
}
}
extension E2ECallAllReceivedRequests {
public static func live(_ bindingsE2E: BindingsE2e) -> E2ECallAllReceivedRequests {
E2ECallAllReceivedRequests(run: bindingsE2E.callAllReceivedRequests)
}
}
extension E2ECallAllReceivedRequests {
public static let unimplemented = E2ECallAllReceivedRequests(
run: XCTUnimplemented("\(Self.self)")
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment