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

Replace dummy values with fatal errors in failing implementations

parent caa34e37
No related branches found
No related tags found
1 merge request!2Bindings API wrapper
......@@ -31,7 +31,7 @@ extension Connection {
#if DEBUG
extension Connection {
public static let failing = Connection(
isAuthenticated: { false },
isAuthenticated: { fatalError("Not implemented") },
send: .failing,
listen: .failing
)
......
......@@ -66,7 +66,7 @@ private class Listener: NSObject, BindingsListenerProtocol {
#if DEBUG
extension MessageListener {
public static let failing = MessageListener { _, _, _ in
Data()
fatalError("Not implemented")
}
}
#endif
......@@ -20,7 +20,7 @@ extension NetworkFollowerStatusProvider {
#if DEBUG
extension NetworkFollowerStatusProvider {
public static let failing = NetworkFollowerStatusProvider {
.unknown(code: -1)
fatalError("Not implemented")
}
}
#endif
......@@ -19,7 +19,7 @@ extension NetworkWaiter {
#if DEBUG
extension NetworkWaiter {
public static let failing = NetworkWaiter { _ in
false
fatalError("Not implemented")
}
}
#endif
......@@ -20,7 +20,7 @@ extension PasswordGenerator {
#if DEBUG
extension PasswordGenerator {
public static let failing = PasswordGenerator { _ in
Data()
fatalError("Not implemented")
}
}
#endif
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