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

Add CreateUserFriendlyErrorMessage functor

parent 9bddbf38
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!20Update Bindings.xcframework
This commit is part of merge request !20. Comments created here will be created in the context of that merge request.
import Bindings
import XCTestDynamicOverlay
public struct CreateUserFriendlyErrorMessage {
public var run: (String) -> String
public func callAsFunction(_ errorString: String) -> String {
run(errorString)
}
}
extension CreateUserFriendlyErrorMessage {
public static let live = CreateUserFriendlyErrorMessage { errorString in
BindingsCreateUserFriendlyErrorMessage(errorString)
}
}
extension CreateUserFriendlyErrorMessage {
public static let unimplemented = CreateUserFriendlyErrorMessage(
run: XCTUnimplemented("\(Self.self)")
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment