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

run-tests.sh

Blame
  • CmixConnect.swift NaN GiB
    import Bindings
    import XCTestDynamicOverlay
    
    public struct CmixConnect {
      public var run: (Bool, Int, Data, Data) throws -> Connection
    
      public func callAsFunction(
        withAuthentication: Bool,
        e2eId: Int,
        recipientContact: Data,
        e2eParamsJSON: Data
      ) throws -> Connection {
        try run(withAuthentication, e2eId, recipientContact, e2eParamsJSON)
      }
    }
    
    extension CmixConnect {
      public static func live(_ bindingsCmix: BindingsCmix) -> CmixConnect {
        CmixConnect { withAuthentication, e2eId, recipientContact, e2eParamsJSON in
          if withAuthentication {
            return .live(try bindingsCmix.connect(
              withAuthentication: e2eId,
              recipientContact: recipientContact,
              e2eParamsJSON: e2eParamsJSON
            ))
          } else {
            return .live(try bindingsCmix.connect(
              e2eId,
              recipientContact: recipientContact,
              e2eParamsJSON: e2eParamsJSON
            ))
          }
        }
      }
    }
    
    extension CmixConnect {
      public static let unimplemented = CmixConnect(
        run: XCTUnimplemented("\(Self.self)")
      )
    }