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

Add EnableGrpcLogs functor

parent 3afd04a0
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
import Bindings
import XCTestDynamicOverlay
public struct EnableGrpcLogs {
public var run: (LogWriter) -> Void
public func callAsFunction(_ writer: LogWriter) {
run(writer)
}
}
extension EnableGrpcLogs {
public static let live = EnableGrpcLogs { writer in
BindingsEnableGrpcLogs(writer.makeBindingsLogWriter())
}
}
extension EnableGrpcLogs {
public static let unimplemented = EnableGrpcLogs(
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