• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-swift / #3

16 Jan 2025 01:24PM UTC coverage: 33.723% (-15.5%) from 49.181%
#3

push

travis-ci

grdsdev
fix unwrapping nil value in ci

4849 of 14379 relevant lines covered (33.72%)

21.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

40.0
/Sources/Storage/StorageHTTPClient.swift
1
import Foundation
2

3
#if canImport(FoundationNetworking)
4
  import FoundationNetworking
5
#endif
6

7
public struct StorageHTTPSession: Sendable {
8
  public var fetch: @Sendable (_ request: URLRequest) async throws -> (Data, URLResponse)
9
  public var upload:
10
    @Sendable (_ request: URLRequest, _ data: Data) async throws -> (Data, URLResponse)
11

12
  public init(
13
    fetch: @escaping @Sendable (_ request: URLRequest) async throws -> (Data, URLResponse),
14
    upload: @escaping @Sendable (_ request: URLRequest, _ data: Data) async throws -> (
15
      Data, URLResponse
16
    )
17
  ) {
4✔
18
    self.fetch = fetch
4✔
19
    self.upload = upload
4✔
20
  }
4✔
21

22
  public init(session: URLSession = .shared) {
×
23
    self.init(
×
24
      fetch: { try await session.data(for: $0) },
×
25
      upload: { try await session.upload(for: $0, from: $1) }
×
26
    )
×
27
  }
×
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc