mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
30 lines
978 B
Swift
30 lines
978 B
Swift
//
|
|
// TestGetStreadIDsService.swift
|
|
// AccountTests
|
|
//
|
|
// Created by Kiel Gillard on 29/10/19.
|
|
// Copyright © 2019 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import XCTest
|
|
@testable import Account
|
|
|
|
//final class TestGetStreadIDsService: FeedlyGetStreamIDsService {
|
|
//
|
|
// var mockResult: Result<FeedlyStreamIDs, Error>?
|
|
// var parameterTester: ((FeedlyResourceID, String?, Date?, Bool?) -> ())?
|
|
// var getStreadIDsExpectation: XCTestExpectation?
|
|
//
|
|
// func getStreamIDs(for resource: FeedlyResourceID, continuation: String?, newerThan: Date?, unreadOnly: Bool?, completion: @escaping (Result<FeedlyStreamIDs, Error>) -> ()) {
|
|
// guard let result = mockResult else {
|
|
// XCTFail("Missing mock result. Test may time out because the completion will not be called.")
|
|
// return
|
|
// }
|
|
// parameterTester?(resource, continuation, newerThan, unreadOnly)
|
|
// DispatchQueue.main.async {
|
|
// completion(result)
|
|
// self.getStreadIDsExpectation?.fulfill()
|
|
// }
|
|
// }
|
|
//}
|