Skip to content
Snippets Groups Projects

Update Bindings

2 files
+ 15
12
Compare changes
  • Side-by-side
  • Inline

Files

@@ -2,16 +2,19 @@ import Bindings
@@ -2,16 +2,19 @@ import Bindings
import XCTestDynamicOverlay
import XCTestDynamicOverlay
public struct E2EGetAllPartnerIds {
public struct E2EGetAllPartnerIds {
public var run: () throws -> Data
public var run: () throws -> [Data]
public func callAsFunction() throws -> Data {
public func callAsFunction() throws -> [Data] {
try run()
try run()
}
}
}
}
extension E2EGetAllPartnerIds {
extension E2EGetAllPartnerIds {
public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetAllPartnerIds {
public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetAllPartnerIds {
E2EGetAllPartnerIds(run: bindingsE2E.getAllPartnerIDs)
E2EGetAllPartnerIds {
 
let listData = try bindingsE2E.getAllPartnerIDs()
 
return try JSONDecoder().decode([Data].self, from: listData)
 
}
}
}
}
}
Loading