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

GetE2EParams.swift

Blame
  • Dariusz Rybicki's avatar
    Dariusz Rybicki authored
    991e3c0f
    History
    GetE2EParams.swift 509 B
    import Bindings
    import XCTestDynamicOverlay
    
    public struct GetE2EParams {
      public var run: () -> Data
    
      public func callAsFunction() -> Data {
        run()
      }
    }
    
    extension GetE2EParams {
      public static let liveDefault = GetE2EParams {
        guard let data = BindingsGetDefaultE2EParams() else {
          fatalError("BindingsGetDefaultE2EParams returned `nil`")
        }
        return data
      }
    }
    
    extension GetE2EParams {
      public static let unimplemented = GetE2EParams(
        run: XCTUnimplemented("\(Self.self)")
      )
    }