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

Add CmixMakeLegacyReceptionIdentity functor

parent 03d6e467
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
......@@ -3,6 +3,7 @@ import Bindings
public struct Cmix {
public var getId: CmixGetId
public var makeReceptionIdentity: CmixMakeReceptionIdentity
public var makeLegacyReceptionIdentity: CmixMakeLegacyReceptionIdentity
public var isHealthy: CmixIsHealthy
public var hasRunningProcesses: CmixHasRunningProcesses
public var networkFollowerStatus: CmixNetworkFollowerStatus
......@@ -15,6 +16,7 @@ extension Cmix {
Cmix(
getId: .live(bindingsCmix),
makeReceptionIdentity: .live(bindingsCmix),
makeLegacyReceptionIdentity: .live(bindingsCmix),
isHealthy: .live(bindingsCmix),
hasRunningProcesses: .live(bindingsCmix),
networkFollowerStatus: .live(bindingsCmix),
......@@ -28,6 +30,7 @@ extension Cmix {
public static let unimplemented = Cmix(
getId: .unimplemented,
makeReceptionIdentity: .unimplemented,
makeLegacyReceptionIdentity: .unimplemented,
isHealthy: .unimplemented,
hasRunningProcesses: .unimplemented,
networkFollowerStatus: .unimplemented,
......
import Bindings
import XCTestDynamicOverlay
public struct CmixMakeLegacyReceptionIdentity {
public var run: () throws -> Data
public func callAsFunction() throws -> Data {
try run()
}
}
extension CmixMakeLegacyReceptionIdentity {
public static func live(_ bindingsCmix: BindingsCmix) -> CmixMakeLegacyReceptionIdentity {
CmixMakeLegacyReceptionIdentity(run: bindingsCmix.makeLegacyReceptionIdentity)
}
}
extension CmixMakeLegacyReceptionIdentity {
public static let unimplemented = CmixMakeLegacyReceptionIdentity(
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