Skip to content
Snippets Groups Projects
Select Git revision
  • f24abef729b7389d3af11f7397b467a7f40cf58f
  • main default protected
  • development
  • integration
  • v1.1.5
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • v1.1.1
  • v1.1.0
  • v1.0.0
11 results

PasswordStorage.swift

Blame
  • StoreReceptionIdentity.swift 718 B
    import Bindings
    import XCTestDynamicOverlay
    
    public struct StoreReceptionIdentity {
      public var run: (String, Data, Int) throws -> Bool
    
      public func callAsFunction(
        key: String,
        identity: Data,
        cmixId: Int
      ) throws -> Bool {
        try run(key, identity, cmixId)
      }
    }
    
    extension StoreReceptionIdentity {
      public static let live = StoreReceptionIdentity { key, identity, cmixId in
        var error: NSError?
        let result = BindingsStoreReceptionIdentity(key, identity, cmixId, &error)
        if let error = error {
          throw error
        }
        return result
      }
    }
    
    extension StoreReceptionIdentity {
      public static let unimplemented = StoreReceptionIdentity(
        run: XCTUnimplemented("\(Self.self)")
      )
    }