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

supabase / supabase-flutter / 28101310897
85%

Build:
DEFAULT BRANCH: main
Ran 24 Jun 2026 01:18PM UTC
Jobs 8
Files 80
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

24 Jun 2026 01:16PM UTC coverage: 85.18% (-0.007%) from 85.187%
28101310897

push

github

web-flow
refactor(realtime_client): extract broadcast headers and body builders (#1461)

## What

`httpSend()` and the REST fallback inside `send()` built identical
broadcast request headers and near-identical message bodies. This
extracts the duplication into:

- `Map<String, String> get _broadcastHeaders`
- `Map<String, dynamic> _broadcastBody(String? event, Map<String,
dynamic> payload)`

Both call sites now use these helpers.

## Notes

- No behavior change. The two body literals previously differed only in
key order (`event`/`payload`), which is irrelevant for JSON encoding.
- The `// ignore: avoid-inferrable-type-arguments` comments are no
longer needed since the map literal type is now inferred from the
getter's return type.

## Verification

- `dart analyze lib` and `dcm analyze` pass with no issues.
- All realtime_client unit tests pass. (The integration test fails
locally only because it needs a running realtime server: `Connection
refused`.)

---
**Note:** This branch also includes a one-line removal of two stale
`avoid-unnecessary-type-assertions` ignores in `postgrest_builder.dart`.
They are flagged as unused by the DCM version used in CI (a pre-existing
failure on `main`, present on every PR). Including it here keeps this
PR's pipeline green; it can drop out cleanly once another PR carrying
the same fix lands.

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

13 existing lines in 1 file now uncovered.

4098 of 4811 relevant lines covered (85.18%)

3.62 hits per line

Coverage Regressions

Lines Coverage ∆ File
13
63.11
0.61% packages/supabase_flutter/lib/src/supabase_auth.dart
Jobs
ID Job ID Ran Files Coverage
6 realtime_client - 28101310897.6 24 Jun 2026 01:20PM UTC 11
88.1
GitHub Action Run
7 supabase_flutter - 28101310897.7 24 Jun 2026 01:19PM UTC 11
77.52
GitHub Action Run
8 supabase - 28101310897.8 24 Jun 2026 01:18PM UTC 15
82.03
GitHub Action Run
5 postgrest - 27986095786.5 22 Jun 2026 09:47PM UTC 9
84.03
GitHub Action Run
8 storage_client - 27986095786.8 22 Jun 2026 09:47PM UTC 5
93.0
GitHub Action Run
7 yet_another_json_isolate - 27986095786.7 22 Jun 2026 09:45PM UTC 1
79.03
GitHub Action Run
4 functions_client - 27986095786.4 22 Jun 2026 09:45PM UTC 2
97.14
GitHub Action Run
6 gotrue - 27986095786.6 22 Jun 2026 09:48PM UTC 26
83.52
GitHub Action Run
Source Files on build 28101310897
  • Tree
  • List 80
  • Changed 5
  • Source Changed 5
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28101310897
  • 7da70605 on github
  • Prev Build on main (#28033305419)
  • Next Build on main (#28103817248)
  • Delete
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