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

danceable / container
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: feat/dependency-graph
DEFAULT BRANCH: main
Repo Added 24 Mar 2026 08:38AM UTC
Files 18
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

LAST BUILD ON BRANCH feat/dependency-graph
branch: feat/dependency-graph
CHANGE BRANCH
x
Reset
  • feat/dependency-graph
  • main

18 Aug 2026 09:54AM UTC coverage: 100.0%. Remained the same
32124045365

Pull #1

github

khanzadimahdi
Feat: build cycle detection and visualization on a dependency graph

Replace the hand-rolled DFS in the registrar with a reusable graph package,
and add a Graphviz visualizer built on the same abstraction.

- internal/graph: Graph interface plus IsAcyclic / IsAcyclicFrom
- internal/registerar: registrations viewed as a graph; the cycle error now
  names the path, and a refused registration is rolled back
- internal/dot: DOT rendering, and Container.Visualize on top of it
- edges follow the same lookup order the container resolves arguments with,
  so named bindings take part in cycle detection

Fixes found along the way:

- an interface dependency resolved to a different implementation from one
  call to the next, making Bind flaky and hiding a self-cycle that crashed
  with a stack overflow; the fallback now settles on the first registered
- Call panicked on a non-nilable single return instead of reporting an
  invalid signature
- an eager singleton could be built twice and hand out two instances
- Bind(nil), a nil func resolver, and nil pointers to Resolve/Fill panicked
- add the Name() method the README already documented

Split by responsibility: scope tree, argument resolution, registration
storage, cycle policy and DOT rendering each stand on their own.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Pull Request #1: Feat: build cycle detection and visualization on a dependency graph

689 of 689 new or added lines in 12 files covered. (100.0%)

948 of 948 relevant lines covered (100.0%)

132.35 hits per line

Relevant lines Covered
Build:
Build:
948 RELEVANT LINES 948 COVERED LINES
132.35 HITS PER LINE
Source Files on feat/dependency-graph
  • Tree
  • List 15
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
32124045365 feat/dependency-graph Feat: build cycle detection and visualization on a dependency graph Replace the hand-rolled DFS in the registrar with a reusable graph package, and add a Graphviz visualizer built on the same abstraction. - internal/graph: Graph interface plus I... Pull #1 18 Aug 2026 09:55AM UTC khanzadimahdi github
100.0
See All Builds (11)
  • Repo on GitHub
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