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

dangernoodle-io / breadboard / 26770543106
100%

Build:
DEFAULT BRANCH: main
Ran 01 Jun 2026 05:23PM UTC
Jobs 1
Files 21
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 05:22PM UTC coverage: 100.0%. Remained the same
26770543106

push

github

web-flow
feat(bb_embed): bb_embed_site — embed a built-SPA dist dir + generate its served asset table (#326)

adds bb_embed_site() cmake helper that walks an entire built-SPA dist/ at configure
time, gzip-compresses every file, and emits a ready-to-serve bb_http_asset_t[] table
— eliminating the hand-maintained per-chunk embed lists that break when vite/rollup
code-splitting drifts the chunk count.

gen_site.py contract:
  - walks dist_dir recursively; deterministic (sorted) ordering
  - symbol = <table_sym>__<relpath sanitised to c identifier>
  - url: index.html at dist root → "/"; all others → "/<relpath>"
  - mime derived from file extension (11 types + octet-stream fallback)
  - encoding = "gzip" for every blob
  - emits one <symbol>.c blob per file via embed_html.embed_file()
  - emits <table_sym>_table.c: extern decls, mutable bb_http_asset_t[] table,
    const size_t <table_sym>_count, and idempotent accessor
    const bb_http_asset_t *<table_sym>_get(size_t *n)
  - accessor pattern mirrors bb_prov_default_form; mutable table (non-const)
    so .data/.len fill from extern blob symbols on first call; c99-portable
  - prints absolute .c paths to stdout (one per line) for cmake capture

cmake/bb_embed.cmake — new bb_embed_site(OUT_SRCS <v> TABLE <s> DIST_DIR <d>
  [URL_PREFIX <p>]): same inspection-pass guard and error handling as
  bb_embed_assets; registers CONFIGURE_DEPENDS via file(GLOB_RECURSE)

scripts/embed_html.py — extracted embed_file() importable entry point; progress
  message redirected to stderr when called as a library so cmake OUTPUT_VARIABLE
  receives only the generated .c paths

smoke coverage: examples/smoke/main/demo_site/ (index.html + assets/app.js +
  assets/style.css fixture); main/CMakeLists.txt calls bb_embed_site and adds
  ${_site_srcs} to idf_component_register SRCS; smoke_app.c calls demo_site_get()
  + bb_http_register_assets under #ifdef ESP_PLATFORM — proves codegen→C→link on
  every esp-idf board; arduino (uno_cc3000) is... (continued)

1356 of 1356 branches covered (100.0%)

Branch coverage included in aggregate %.

2314 of 2314 relevant lines covered (100.0%)

914.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26770543106.1 01 Jun 2026 05:22PM UTC 21
100.0
GitHub Action Run
Source Files on build 26770543106
  • Tree
  • List 21
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26770543106
  • e899d031 on github
  • Prev Build on main (#26767039470)
  • Next Build on main (#26788636886)
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