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

Add E2EGetHistoricalDHPrivateKey functor

parent df15d9f9
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 E2E {
public var getId: E2EGetId
public var getReceptionId: E2EGetReceptionId
public var getHistoricalDHPrivateKey: E2EGetHistoricalDHPrivateKey
public var getContact: E2EGetContact
public var payloadSize: E2EPayloadSize
public var partitionSize: E2EPartitionSize
......@@ -18,6 +19,7 @@ extension E2E {
E2E(
getId: .live(bindingsE2E),
getReceptionId: .live(bindingsE2E),
getHistoricalDHPrivateKey: .live(bindingsE2E),
getContact: .live(bindingsE2E),
payloadSize: .live(bindingsE2E),
partitionSize: .live(bindingsE2E),
......@@ -32,6 +34,7 @@ extension E2E {
public static let unimplemented = E2E(
getId: .unimplemented,
getReceptionId: .unimplemented,
getHistoricalDHPrivateKey: .unimplemented,
getContact: .unimplemented,
payloadSize: .unimplemented,
partitionSize: .unimplemented,
......
import Bindings
import XCTestDynamicOverlay
public struct E2EGetHistoricalDHPrivateKey {
public var run: () throws -> Data
public func callAsFunction() throws -> Data {
try run()
}
}
extension E2EGetHistoricalDHPrivateKey {
public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetHistoricalDHPrivateKey {
E2EGetHistoricalDHPrivateKey(run: bindingsE2E.getHistoricalDHPrivkey)
}
}
extension E2EGetHistoricalDHPrivateKey {
public static let unimplemented = E2EGetHistoricalDHPrivateKey(
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