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

Add E2EGetUdCertFromNdf functor

parent 9ed964f9
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!26Update Bindings
......@@ -8,6 +8,7 @@ public struct E2E {
public var getContact: E2EGetContact
public var getAllPartnerIds: E2EGetAllPartnerIds
public var getUdAddressFromNdf: E2EGetUdAddressFromNdf
public var getUdCertFromNdf: E2EGetUdCertFromNdf
public var payloadSize: E2EPayloadSize
public var partitionSize: E2EPartitionSize
public var addPartnerCallback: E2EAddPartnerCallback
......@@ -36,6 +37,7 @@ extension E2E {
getContact: .live(bindingsE2E),
getAllPartnerIds: .live(bindingsE2E),
getUdAddressFromNdf: .live(bindingsE2E),
getUdCertFromNdf: .live(bindingsE2E),
payloadSize: .live(bindingsE2E),
partitionSize: .live(bindingsE2E),
addPartnerCallback: .live(bindingsE2E),
......@@ -65,6 +67,7 @@ extension E2E {
getContact: .unimplemented,
getAllPartnerIds: .unimplemented,
getUdAddressFromNdf: .unimplemented,
getUdCertFromNdf: .unimplemented,
payloadSize: .unimplemented,
partitionSize: .unimplemented,
addPartnerCallback: .unimplemented,
......
import Bindings
import XCTestDynamicOverlay
public struct E2EGetUdCertFromNdf {
public var run: () -> Data
public func callAsFunction() -> Data {
run()
}
}
extension E2EGetUdCertFromNdf {
public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetUdCertFromNdf {
E2EGetUdCertFromNdf {
guard let data = bindingsE2E.getUdCertFromNdf() else {
fatalError("BindingsE2e.getUdCertFromNdf returned `nil`")
}
return data
}
}
}
extension E2EGetUdCertFromNdf {
public static let unimplemented = E2EGetUdCertFromNdf(
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