1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-30 11:40:15 +01:00
metatext-app-ios-iphone-ipad/Development Assets/FakeKeychain.swift
Justin Mazzocchi 330d796442
Refactoring
2020-08-08 18:29:05 -07:00

22 lines
431 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
class MockKeychainService {
private var guts = [String: Data]()
}
extension MockKeychainService: KeychainServiceType {
func set(data: Data, forKey key: String) throws {
guts[key] = data
}
func deleteData(key: String) throws {
guts[key] = nil
}
func getData(key: String) throws -> Data? {
guts[key]
}
}