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

Add E2ERemoveService functor

parent 79ff55f2
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
......@@ -8,6 +8,7 @@ public struct E2E {
public var partitionSize: E2EPartitionSize
public var addPartnerCallback: E2EAddPartnerCallback
public var addService: E2EAddService
public var removeService: E2ERemoveService
// TODO:
}
......@@ -21,7 +22,8 @@ extension E2E {
payloadSize: .live(bindingsE2E: bindingsE2E),
partitionSize: .live(bindingsE2E: bindingsE2E),
addPartnerCallback: .live(bindingsE2E),
addService: .live(bindingsE2E)
addService: .live(bindingsE2E),
removeService: .live(bindingsE2E)
)
}
}
......@@ -34,6 +36,7 @@ extension E2E {
payloadSize: .unimplemented,
partitionSize: .unimplemented,
addPartnerCallback: .unimplemented,
addService: .unimplemented
addService: .unimplemented,
removeService: .unimplemented
)
}
import Bindings
import XCTestDynamicOverlay
public struct E2ERemoveService {
public var run: (String) throws -> Void
public func callAsFunction(tag: String) throws {
try run(tag)
}
}
extension E2ERemoveService {
public static func live(_ bindingsE2E: BindingsE2e) -> E2ERemoveService {
E2ERemoveService(run: bindingsE2E.removeService(_:))
}
}
extension E2ERemoveService {
public static let unimplemented = E2ERemoveService(
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