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

dangernoodle-io / TaipanMiner / 26761047083
90%

Build:
DEFAULT BRANCH: main
Ran 01 Jun 2026 02:25PM UTC
Jobs 3
Files 106
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

01 Jun 2026 02:24PM UTC coverage: 90.11% (+0.03%) from 90.077%
26761047083

push

github

web-flow
refactor(webui): stream /api/power + /api/fan via host-tested emit fns (#478)

The runtime JSON for these endpoints was emitted inline in routes.c handlers,
while routes_json.c held DOM build_*_json mirrors that were host-test-only
(never called at runtime) — so the tests validated a copy the device never ran.
That is how the expected-efficiency bug shipped (runtime compute had no host
coverage). This unifies on one streaming path: handler gathers a snapshot, then
delegates to a host-testable emit fn that the tests also drive.

- routes_json.c: build_power_json/build_fan_json (DOM) -> emit_power_json/
  emit_fan_json streaming fns (snapshot + bb_http_resp_json_obj_* API,
  host-compilable, no ESP); ported verbatim from the handlers' inline emit
- routes.c: power_handler/fan_handler gather the snapshot then call emit_*_json
  between obj_begin/obj_end
- tests: power/fan cases rewritten to drive the real emit fns through the
  bb_http_host_capture harness (runtime == tested)
- CLAUDE.md: document the gather+delegate / single-emit-path rule; fix stale
  /api/ota/* route paths -> /api/update/*

Wire format unchanged — byte-identical /api/power + /api/fan verified on a live
bitaxe-601 (only fresh-boot transient values differ). Pilot for the
stats/pool/settings/diag/knot migration.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

2774 of 3492 branches covered (79.44%)

Branch coverage included in aggregate %.

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

5408 of 5588 relevant lines covered (96.78%)

147813.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 native - 26761047083.1 01 Jun 2026 02:25PM UTC 29
90.31
GitHub Action Run
2 e2e - 26761047083.2 01 Jun 2026 02:27PM UTC 56
58.38
GitHub Action Run
3 webui - 26761047083.3 01 Jun 2026 02:26PM UTC 77
90.9
GitHub Action Run
Source Files on build 26761047083
  • Tree
  • List 106
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26761047083
  • 4411cc0a on github
  • Prev Build on main (#26758356227)
  • Next Build on main (#26762311480)
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