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

starwing / musubi / 20087509453
100%

Build:
DEFAULT BRANCH: master
Ran 10 Dec 2025 04:39AM UTC
Jobs 5
Files 2
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 Dec 2025 04:36AM UTC coverage: 100.0%. Remained the same
20087509453

push

github

starwing
feat(api): implement Cache/Source architecture for multi-source diagnostics

Breaking Changes:
- Replaced Report-centric source management with Cache-based API
- Changed `mu_render(R, pos, src_id)` to `mu_render(R, pos, cache)`
- Removed `mu_source()`, replaced with `mu_addsource()` pattern
- Source auto-upgrade: single Source can be used as Cache transparently

C API Changes:
1. New Cache API
   - `mu_newcache()` / `mu_delcache()` for lifecycle management
   - `mu_addmemory()` / `mu_addfile()` for adding sources
   - `mu_sourcecount()` to query source count
   - Double-pointer pattern: `mu_addmemory(&C, ...)` auto-upgrades NULL

2. Source lifecycle
   - `mu_addsource()` creates Source with allocator
   - Single Source is-a Cache (cache.sources = &self)
   - `mu_delcache()` handles both single Source and multi-Cache
   - `mu_sourceoffset()` macro replaces direct field access

3. Render API
   - `mu_render()` takes `const mu_Cache*` instead of `src_id`
   - Validates all label src_id against cache source count
   - Groups are rebuilt per render (removed source-level gidx)

4. Memory management
   - `mu_Allocator` struct extracted from Report
   - `muM_alloc()` / `muM_free()` helpers
   -  Default allocator uses realloc/free

5. Internal restructuring
   - `muG_init_info()` returns LabelInfo by value
   - `mu_LabelInfo.label` now const pointer
   - Reference header uses Source* directly
   - Array helpers use mu_Allocator instead of Report

Lua Bindings:
- `lmu_Report` now owns `mu_Cache *C`
- `:source()` calls `mu_addmemory()` / `mu_addfile()`
- New `mu.cache()` class with `:source()` / `:file()` / `:render()`
- Cache `#` operator returns source count
- Render requires at least one source added

Documentation:
- README.md: Added C API Usage section
  * stb-style library setup (MU_IMPLEMENTATION, MU_STATIC_API)
  * Basic example with buffer_writer
  * Source/Cache lifecycle explanation
  * Multi-source, file streaming, error handling examples
  * Comple... (continued)

208 of 208 new or added lines in 2 files covered. (100.0%)

1363 of 1363 relevant lines covered (100.0%)

9355.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-5.3 - 20087509453.1 10 Dec 2025 04:39AM UTC 2
99.71
GitHub Action Run
2 run-5.2 - 20087509453.2 10 Dec 2025 04:39AM UTC 2
99.27
GitHub Action Run
3 run-luajit-openresty - 20087509453.3 10 Dec 2025 04:39AM UTC 2
99.27
GitHub Action Run
4 run-5.4 - 20087509453.4 10 Dec 2025 04:39AM UTC 2
100.0
GitHub Action Run
5 run-5.1 - 20087509453.5 10 Dec 2025 04:39AM UTC 2
98.46
GitHub Action Run
Source Files on build 20087509453
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 83b5eff8 on github
  • Prev Build on master (#20023882064)
  • Next Build on master (#20138291799)
  • 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

© 2025 Coveralls, Inc