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

IgorBabkin / ts-ioc-container / 27498559348
97%
master: 94%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 14 Jun 2026 12:17PM UTC
Jobs 1
Files 51
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

14 Jun 2026 12:16PM UTC coverage: 96.596% (-0.06%) from 96.651%
27498559348

push

github

web-flow
feat(container): add getScopeByInstanceOrFail to locate the owning scope (#82)

* feat(container): add getScopeByInstanceOrFail to locate the owning scope

Add IContainer.getScopeByInstanceOrFail(instance) which walks the
container subtree to find the scope that owns a given instance, throwing
the new ContainerNotFoundError when none does.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(container): add hasInstance and use it in getScopeByInstanceOrFail

Add IContainer.hasInstance(instance) which reports whether a scope owns a
given instance, and use it inside getScopeByInstanceOrFail and the subtree
walk instead of inspecting getInstances directly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refactor(container): inline subtree walk in getScopeByInstanceOrFail

Replace the findScopeByInstance helper with a direct breadth-first walk
over the scope subtree inside getScopeByInstanceOrFail.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

243 of 252 branches covered (96.43%)

Branch coverage included in aggregate %.

12 of 14 new or added lines in 3 files covered. (85.71%)

580 of 600 relevant lines covered (96.67%)

62.63 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
75.0
-8.33% lib/container/EmptyContainer.ts
Subprojects
ID Flag name Job ID Ran Files Coverage
1 /jobs/183246057 27498559348.1 14 Jun 2026 12:17PM UTC 51
96.6
GitHub Action Run
Source Files on build 27498559348
  • Tree
  • List 51
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27498559348
  • 9dfe45d4 on github
  • Prev Build on main (#27494809527)
  • Next Build on main (#27847439549)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc