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

Add IsRegisteredWithUD functor

parent 31d966b6
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!31Update Bindings
This commit is part of merge request !31. Comments created here will be created in the context of that merge request.
import Bindings
import XCTestDynamicOverlay
public struct IsRegisteredWithUD {
public var run: (Int) throws -> Bool
public func callAsFunction(e2eId: Int) throws -> Bool {
try run(e2eId)
}
}
extension IsRegisteredWithUD {
public static let live = IsRegisteredWithUD { e2eId in
var result: ObjCBool = false
var error: NSError?
BindingsIsRegisteredWithUD(
e2eId,
&result,
&error
)
if let error = error {
throw error
}
return result.boolValue
}
}
extension IsRegisteredWithUD {
public static let unimplemented = IsRegisteredWithUD(
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