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

Add GetSingleUseParams functor

parent 775f2663
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
import Bindings
import XCTestDynamicOverlay
public struct GetSingleUseParams {
public var run: () -> Data
public func callAsFunction() -> Data {
run()
}
}
extension GetSingleUseParams {
public static let liveDefault = GetSingleUseParams {
guard let data = BindingsGetDefaultSingleUseParams() else {
fatalError("BindingsGetDefaultSingleUseParams returned `nil`")
}
return data
}
}
extension GetSingleUseParams {
public static let unimplemented = GetCmixParams(
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