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

Add E2EGetHistoricalDHPublicKey functor

parent b237235b
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
......@@ -4,6 +4,7 @@ public struct E2E {
public var getId: E2EGetId
public var getReceptionId: E2EGetReceptionId
public var getHistoricalDHPrivateKey: E2EGetHistoricalDHPrivateKey
public var getHistoricalDHPublicKey: E2EGetHistoricalDHPublicKey
public var getContact: E2EGetContact
public var payloadSize: E2EPayloadSize
public var partitionSize: E2EPartitionSize
......@@ -20,6 +21,7 @@ extension E2E {
getId: .live(bindingsE2E),
getReceptionId: .live(bindingsE2E),
getHistoricalDHPrivateKey: .live(bindingsE2E),
getHistoricalDHPublicKey: .live(bindingsE2E),
getContact: .live(bindingsE2E),
payloadSize: .live(bindingsE2E),
partitionSize: .live(bindingsE2E),
......@@ -35,6 +37,7 @@ extension E2E {
getId: .unimplemented,
getReceptionId: .unimplemented,
getHistoricalDHPrivateKey: .unimplemented,
getHistoricalDHPublicKey: .unimplemented,
getContact: .unimplemented,
payloadSize: .unimplemented,
partitionSize: .unimplemented,
......
import Bindings
import XCTestDynamicOverlay
public struct E2EGetHistoricalDHPublicKey {
public var run: () throws -> Data
public func callAsFunction() throws -> Data {
try run()
}
}
extension E2EGetHistoricalDHPublicKey {
public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetHistoricalDHPublicKey {
E2EGetHistoricalDHPublicKey(run: bindingsE2E.getHistoricalDHPubkey)
}
}
extension E2EGetHistoricalDHPublicKey {
public static let unimplemented = E2EGetHistoricalDHPublicKey(
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