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

orion-ecs / keen-eye / 19984139392
65%

Build:
DEFAULT BRANCH: main
Ran 06 Dec 2025 05:45AM UTC
Jobs 1
Files 15
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

06 Dec 2025 05:45AM UTC coverage: 95.041% (+0.1%) from 94.93%
19984139392

push

github

tyevco
Add singleton/resource system for world-level data

Implements issue #59 - a singleton/resource system for storing world-level
data not tied to entities (time, input, config, global state).

New World methods:
- SetSingleton<T>(in T value): Stores or updates a singleton value
- GetSingleton<T>(): Returns ref T for zero-copy access; throws if missing
- TryGetSingleton<T>(out T value): Safe accessor returning bool
- HasSingleton<T>(): Checks if singleton exists
- RemoveSingleton<T>(): Removes singleton, returns bool indicating success

Key implementation details:
- Storage uses Dictionary<Type, object> (boxing acceptable for O(1) access)
- GetSingleton returns ref via Unsafe.Unbox<T>() for zero-copy modification
- Per-world storage (not global static) maintains world isolation
- Singletons cleared in Dispose() method

Includes 50+ comprehensive unit tests covering:
- Basic CRUD operations for all five methods
- World isolation (singletons don't leak between worlds)
- Integration with entity operations
- Edge cases and idempotency

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

690 of 726 relevant lines covered (95.04%)

0.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19984139392.1 06 Dec 2025 05:45AM UTC 15
95.04
GitHub Action Run
Source Files on build 19984139392
  • Tree
  • List 15
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19984139392
  • 081883e5 on github
  • Prev Build on main (#19984042158)
  • Next Build on main (#19984221116)
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