Skip to content
Snippets Groups Projects
Select Git revision
  • a16e5bed000a36be5f5c2a3f40659001208c90f2
  • main default protected
  • development
  • feature/contacts-text-search
  • v1.2.0
  • v1.1.0
  • v1.0.8
  • v1.0.7
  • v1.0.6
  • v1.0.5
  • v1.0.4
  • v1.0.3
  • v1.0.2
  • v1.0.1
  • v1.0.0
15 results

Group+GRDB.swift

Blame
  • NewCMix.swift 834 B
    import Bindings
    import XCTestDynamicOverlay
    
    public struct NewCMix {
      public var run: (String, String, Data, String?) throws -> Void
    
      public func callAsFunction(
        ndfJSON: String,
        storageDir: String,
        password: Data,
        registrationCode: String?
      ) throws {
        try run(ndfJSON, storageDir, password, registrationCode)
      }
    }
    
    extension NewCMix {
      public static let live = NewCMix { ndfJSON, storageDir, password, registrationCode in
        var error: NSError?
        let result = BindingsNewCmix(ndfJSON, storageDir, password, registrationCode, &error)
        if let error = error {
          throw error
        }
        if !result {
          fatalError("BindingsNewCMix returned `false` without providing error")
        }
      }
    }
    
    extension NewCMix {
      public static let unimplemented = NewCMix(
        run: XCTUnimplemented("\(Self.self)")
      )
    }