From d811b9916e50c248c1f76352e3f0fc6c99d9ccdf Mon Sep 17 00:00:00 2001
From: Dariusz Rybicki <dariusz@elixxir.io>
Date: Thu, 2 Jun 2022 12:07:46 +0200
Subject: [PATCH] Replace dummy values with fatal errors in failing
 implementations

---
 Sources/ElixxirDAppsSDK/Connection.swift                    | 2 +-
 Sources/ElixxirDAppsSDK/MessageListener.swift               | 2 +-
 Sources/ElixxirDAppsSDK/NetworkFollowerStatusProvider.swift | 2 +-
 Sources/ElixxirDAppsSDK/NetworkWaiter.swift                 | 2 +-
 Sources/ElixxirDAppsSDK/PasswordGenerator.swift             | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Sources/ElixxirDAppsSDK/Connection.swift b/Sources/ElixxirDAppsSDK/Connection.swift
index 473b8971..5b7cb920 100644
--- a/Sources/ElixxirDAppsSDK/Connection.swift
+++ b/Sources/ElixxirDAppsSDK/Connection.swift
@@ -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
   )
diff --git a/Sources/ElixxirDAppsSDK/MessageListener.swift b/Sources/ElixxirDAppsSDK/MessageListener.swift
index 67e1fcd5..1dd74d05 100644
--- a/Sources/ElixxirDAppsSDK/MessageListener.swift
+++ b/Sources/ElixxirDAppsSDK/MessageListener.swift
@@ -66,7 +66,7 @@ private class Listener: NSObject, BindingsListenerProtocol {
 #if DEBUG
 extension MessageListener {
   public static let failing = MessageListener { _, _, _ in
-    Data()
+    fatalError("Not implemented")
   }
 }
 #endif
diff --git a/Sources/ElixxirDAppsSDK/NetworkFollowerStatusProvider.swift b/Sources/ElixxirDAppsSDK/NetworkFollowerStatusProvider.swift
index ee8d5cc3..b1049df7 100644
--- a/Sources/ElixxirDAppsSDK/NetworkFollowerStatusProvider.swift
+++ b/Sources/ElixxirDAppsSDK/NetworkFollowerStatusProvider.swift
@@ -20,7 +20,7 @@ extension NetworkFollowerStatusProvider {
 #if DEBUG
 extension NetworkFollowerStatusProvider {
   public static let failing = NetworkFollowerStatusProvider {
-    .unknown(code: -1)
+    fatalError("Not implemented")
   }
 }
 #endif
diff --git a/Sources/ElixxirDAppsSDK/NetworkWaiter.swift b/Sources/ElixxirDAppsSDK/NetworkWaiter.swift
index 2f1ac828..c895104d 100644
--- a/Sources/ElixxirDAppsSDK/NetworkWaiter.swift
+++ b/Sources/ElixxirDAppsSDK/NetworkWaiter.swift
@@ -19,7 +19,7 @@ extension NetworkWaiter {
 #if DEBUG
 extension NetworkWaiter {
   public static let failing = NetworkWaiter { _ in
-    false
+    fatalError("Not implemented")
   }
 }
 #endif
diff --git a/Sources/ElixxirDAppsSDK/PasswordGenerator.swift b/Sources/ElixxirDAppsSDK/PasswordGenerator.swift
index f1dd47ea..4c5b978e 100644
--- a/Sources/ElixxirDAppsSDK/PasswordGenerator.swift
+++ b/Sources/ElixxirDAppsSDK/PasswordGenerator.swift
@@ -20,7 +20,7 @@ extension PasswordGenerator {
 #if DEBUG
 extension PasswordGenerator {
   public static let failing = PasswordGenerator { _ in
-    Data()
+    fatalError("Not implemented")
   }
 }
 #endif
-- 
GitLab