diff --git a/ZcashLightClientKitTests/utils/DarkSideWalletService.swift b/ZcashLightClientKitTests/utils/DarkSideWalletService.swift index 271b9178..61beffa6 100644 --- a/ZcashLightClientKitTests/utils/DarkSideWalletService.swift +++ b/ZcashLightClientKitTests/utils/DarkSideWalletService.swift @@ -38,6 +38,14 @@ enum DarksideDataset: String { } class DarksideWalletService: LightWalletService { + func getInfo() throws -> LightWalletdInfo { + try service.getInfo() + } + + func getInfo(result: @escaping (Result) -> Void) { + service.getInfo(result: result) + } + func closeConnection() { } diff --git a/ZcashLightClientKitTests/utils/FakeService.swift b/ZcashLightClientKitTests/utils/FakeService.swift index fe383c43..48d76af4 100644 --- a/ZcashLightClientKitTests/utils/FakeService.swift +++ b/ZcashLightClientKitTests/utils/FakeService.swift @@ -18,6 +18,14 @@ struct LightWalletServiceMockResponse: LightWalletServiceResponse { } class MockLightWalletService: LightWalletService { + func getInfo() throws -> LightWalletdInfo { + throw LightWalletServiceError.generalError(message: "Not Implemented") + } + + func getInfo(result: @escaping (Result) -> Void) { + return result(.failure(LightWalletServiceError.generalError(message: "Not Implemented"))) + } + func closeConnection() { } diff --git a/ZcashLightClientKitTests/utils/MockTransactionRepository.swift b/ZcashLightClientKitTests/utils/MockTransactionRepository.swift index ac9c7d34..7b205fb7 100644 --- a/ZcashLightClientKitTests/utils/MockTransactionRepository.swift +++ b/ZcashLightClientKitTests/utils/MockTransactionRepository.swift @@ -10,6 +10,10 @@ import Foundation @testable import ZcashLightClientKit class MockTransactionRepository: TransactionRepository { + func blockForHeight(_ height: BlockHeight) throws -> Block? { + nil + } + func findConfirmedTransactions(in range: BlockRange, offset: Int, limit: Int) throws -> [ConfirmedTransactionEntity]? { nil }