Skip to content
Snippets Groups Projects
Select Git revision
  • f01aa47c42a205b7dfa6e315ed0a73c0b13b286a
  • 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

E2EGetReceptionId.swift

Blame
  • E2EGetReceptionId.swift 593 B
    import Bindings
    import XCTestDynamicOverlay
    
    public struct E2EGetReceptionId {
      public var run: () -> Data
    
      public func callAsFunction() -> Data {
        run()
      }
    }
    
    extension E2EGetReceptionId {
      public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetReceptionId {
        E2EGetReceptionId {
          guard let data = bindingsE2E.getReceptionID() else {
            fatalError("BindingsE2e.getReceptionID returned `nil`")
          }
          return data
        }
      }
    }
    
    extension E2EGetReceptionId {
      public static let unimplemented = E2EGetReceptionId(
        run: XCTUnimplemented("\(Self.self)")
      )
    }