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

danceable / provider / 31703901361
95%
main: 100%

Build:
Build:
LAST BUILD BRANCH: test/complete-coverage
DEFAULT BRANCH: main
Ran 13 Aug 2026 01:14PM UTC
Jobs 1
Files 7
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

13 Aug 2026 01:13PM UTC coverage: 92.329% (-7.7%) from 100.0%
31703901361

Pull #1

github

khanzadimahdi
Feat: decouple container behind adapters (danceable + uber/dig)

Introduce a backend-agnostic Container contract so the provider manager no
longer depends on a single DI container. Providers now bind and resolve
through neutral options (provider.Singleton/Lazy/WithName/ResolveName), and
an adapter maps those onto a concrete backend.

- internal/contract: neutral Container interface + bind/resolve options,
  re-exported from the provider package (Container, BindOption, Singleton,
  Lazy, WithName, ResolveName, WithParams) so callers never import it.
- adapters/danceable: the existing danceable/container adapter, moved out of
  the root package and exported, translating neutral options.
- adapters/dig: a new go.uber.org/dig adapter. Resolve/Fill and named
  resolution are implemented via reflection over dig's Provide/Invoke/Scope.
- global.go wires the default manager through the danceable adapter.
- Blog example and README updated to the neutral options; example builds
  against the local module via a replace directive.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #1: Decouple container behind adapters (danceable + uber/dig)

126 of 153 new or added lines in 4 files covered. (82.35%)

1 existing line in 1 file now uncovered.

337 of 365 relevant lines covered (92.33%)

45.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
22
0.0
internal/contract/contract.go
3
96.43
adapters/dig/dig.go
2
95.65
adapters/danceable/danceable.go

Coverage Regressions

Lines Coverage ∆ File
1
97.67
-2.33% scope.go
Jobs
ID Job ID Ran Files Coverage
1 31703901361.1 13 Aug 2026 01:14PM UTC 7
92.33
GitHub Action Run
Source Files on build 31703901361
  • Tree
  • List 7
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1
  • PR Base - main (#27873767778)
  • Delete
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