Skip to content
Snippets Groups Projects
Select Git revision
  • f78427b990a185d852a7fbd9446f8784109b09d9
  • release default
  • master protected
  • hotfix/gtnNoToken
  • XX-4441
  • Jakub/rootless-CI
  • jonah/refactorProviders
  • Ace/Huawei
  • AceVentura/AccountBackup
  • hotfix/delete-error
  • waitingRoundsRewrite
  • dev
  • quantumSecure
  • hotfix/ratelimit
  • fullRateLimit
  • XX-3564/TlsCipherSuite
  • hotfix/notifications-db
  • hotfix/groupNotification
  • Project/LastMile
  • notls
  • url-repo-rename
  • v2.3.0
  • v2.2.0
  • v2.1.0
  • v2.0.0
  • v1.0.0
26 results

notifications_test.go

Blame
  • ConnectionPartnerProvider.swift NaN GiB
    import Bindings
    
    public struct ConnectionPartnerProvider {
      public var get: () -> Data
    
      public func callAsFunction() -> Data {
        get()
      }
    }
    
    extension ConnectionPartnerProvider {
      public static func live(
        bindingsConnection: BindingsConnection
      ) -> ConnectionPartnerProvider {
        ConnectionPartnerProvider {
          guard let data = bindingsConnection.getPartner() else {
            fatalError("BindingsConnection.getPartner returned `nil`")
          }
          return data
        }
      }
    
      public static func live(
        bindingsAuthenticatedConnection: BindingsAuthenticatedConnection
      ) -> ConnectionPartnerProvider {
        ConnectionPartnerProvider {
          guard let data = bindingsAuthenticatedConnection.getPartner() else {
            fatalError("BindingsAuthenticatedConnection.getPartner returned `nil`")
          }
          return data
        }
      }
    }
    
    #if DEBUG
    extension ConnectionPartnerProvider {
      public static let failing = ConnectionPartnerProvider {
        fatalError("Not implemented")
      }
    }
    #endif