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
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.
Finish editing this message first!
Please register or to comment