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

orion-ecs / keen-eye / 19984042158
65%

Build:
DEFAULT BRANCH: main
Ran 06 Dec 2025 05:38AM 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:37AM UTC coverage: 94.93% (+0.06%) from 94.868%
19984042158

push

github

tyevco
Add entity naming support with Spawn(name), GetName, GetEntityByName

Implements GitHub issue #58 - Entity Naming Support

Features:
- World.Spawn(string? name) overload for creating named entities
- World.GetName(Entity) for retrieving entity names
- World.GetEntityByName(string) for reverse lookup by name
- Bidirectional Dictionary storage for O(1) lookups both ways
- Automatic name cleanup on Despawn
- Unique name enforcement with ArgumentException on duplicates

Implementation details:
- Added entityNames and namesToEntityIds dictionaries to World
- EntityBuilder tracks optional name and passes it to CreateEntity
- Despawn cleans up both name mappings when entity is destroyed
- Dispose clears name dictionaries along with other state
- Stale entity handles return null from GetName (safe pattern)

Tests:
- 35 comprehensive tests covering all naming scenarios
- Spawn with/without names, duplicate name handling
- GetName for named, unnamed, stale, and invalid entities
- GetEntityByName including case sensitivity and edge cases
- Despawn cleanup verification and name reuse after despawn
- Integration tests with components and queries
- Edge cases: empty strings, unicode, special characters

28 of 29 new or added lines in 2 files covered. (96.55%)

674 of 710 relevant lines covered (94.93%)

0.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
97.86
-0.42% src/KeenEyes.Core/World.cs
Jobs
ID Job ID Ran Files Coverage
1 19984042158.1 06 Dec 2025 05:38AM UTC 15
94.93
GitHub Action Run
Source Files on build 19984042158
  • Tree
  • List 15
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19984042158
  • cf0e39d1 on github
  • Prev Build on main (#19983828042)
  • Next Build on main (#19984139392)
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