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

supabase / supabase-swift / 42782403622
96%

Build:
DEFAULT BRANCH: main
Ran 10 Nov 2026 08:32AM UTC
Jobs 1
Files 218
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Nov 2026 08:24AM UTC coverage: 95.885% (-0.1%) from 95.995%
42782403622

push

github

web-flow
test: stub HTTP at the ClientTransport seam and remove Mocker (#1777)

* test: add a shared RecordingTransport stub helper to TestHelpers

* test(supabase): stub facade HTTP through global.http instead of URLProtocol

* test(postgrest-macros): use the shared RecordingTransport

* test(storage): stub HTTP with RecordingTransport instead of Mocker

* test(postgrest): stub HTTP with RecordingTransport instead of Mocker

* test(functions): stub HTTP with RecordingTransport instead of Mocker

* test(helpers): stub URLSessionTransportTests with a private URLProtocol instead of Mocker

* chore(deps): remove Mocker

Every test target now stubs HTTP at the ClientTransport seam, so Mocker and
the process-wide machinery it needed (MockerSerializedTrait, deferred request
snapshots, Mock.snapshotRequest) go away. Remove Mocker from both manifests
and both Package.resolved files, and update the CODE_STYLE.md rule.

Refs SDK-2883

* test: share the closure-stub snapshot assert and simplify the stubs

- Move assertFirstRequestSnapshot into TestHelpers, keyed by URL, so
  FunctionsTests no longer copies the snapshot code; curlRequest is private.
- Add Content-Type: application/json only for a JSON body, as Mocker sent
  no content type unless a test set one.
- Hold the cancellation stubs with Gate instead of a 10 s sleep.
- Key URLSessionTransportTests' stub table by URL.

Refs SDK-2883

* test: tighten the stub matcher and cover URLSession cancellation

- Match the stub's scheme, host, and port too, so a request sent to the wrong
  host no longer finds a stub. Stub JWKS per host in the two-client test.
- Add a URLSessionTransportTests cancel test: the Functions and Storage cancel
  tests no longer go through URLSession, so nothing else checks that a
  cancelled caller cancels the URLSession task.
- Keep the Auth stub's JSON Content-Type for any non-empty body.
- Drop a dead import in FunctionsClientTests.

Refs SDK-2883

53 of 53 new or added lines in 1 file covered. (100.0%)

21 existing lines in 3 files now uncovered.

15590 of 16259 relevant lines covered (95.89%)

695237.29 hits per line

Coverage Regressions

Lines Coverage ∆ File
16
69.35
-25.81% Sources/TestHelpers/URLRequestSnapshot.swift
3
97.35
-2.65% Sources/Helpers/JSONValue/JSONValue.swift
2
98.08
-0.55% Sources/Realtime/RealtimeClient.swift
Jobs
ID Job ID Ran Files Coverage
1 42782403622.1 10 Nov 2026 08:32AM UTC 218
95.89
GitHub Action Run
Source Files on build 42782403622
  • Tree
  • List 218
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42782403622
  • 66c0c489 on github
  • Prev Build on main (#42663545739)
  • Next Build on main (#42788534676)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc