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

stacklok / toolhive / 24307141501
66%

Build:
DEFAULT BRANCH: main
Ran 12 Apr 2026 12:54PM UTC
Jobs 1
Files 617
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

12 Apr 2026 12:49PM UTC coverage: 65.531% (-0.05%) from 65.576%
24307141501

push

github

web-flow
Fix NewHandler using config.NewDefaultProvider instead of config.NewProvider (#4754)

* Add tests for NewHandler using config.NewProvider

NewHandler previously called config.NewDefaultProvider() directly for
both the config and registry provider, bypassing any registered
enterprise ProviderFactory. The fix (already applied) changes both
call sites to config.NewProvider().

Add unit tests that verify the two-step provider-initialization
sequence (config.NewProvider + registry.GetDefaultProviderWithConfig)
honours a registered ProviderFactory. NewHandler cannot be tested
end-to-end because workloads.NewManager requires a live container
runtime, so the tests exercise the initialization path in isolation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Remove server-package tests that test external packages

The tests in new_handler_test.go called only config.NewProvider() and
registry.GetDefaultProviderWithConfig() — no server package code — in
violation of testing.md's rule that tests must only test the package
under test.

Equivalent coverage already exists in the correct locations:
- pkg/config/factory_test.go covers NewProvider factory invocation
- pkg/registry/factory_test.go:TestGetDefaultProvider_RespectsRegisteredFactory
  covers the end-to-end factory → registry path with real registry content

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

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

48 existing lines in 7 files now uncovered.

56509 of 86233 relevant lines covered (65.53%)

62.85 hits per line

Coverage Regressions

Lines Coverage ∆ File
14
74.44
-5.19% pkg/client/config.go
14
20.11
-8.05% pkg/client/manager.go
11
68.83
-14.29% pkg/client/discovery.go
3
70.0
-3.33% pkg/state/local.go
2
79.38
-0.52% pkg/transport/proxy/httpsse/http_proxy.go
2
57.89
-3.51% pkg/transport/session/sse_session.go
2
82.29
-0.21% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 24307141501.1 12 Apr 2026 12:54PM UTC 617
65.53
GitHub Action Run
Source Files on build 24307141501
  • Tree
  • List 617
  • Changed 10
  • Source Changed 1
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24307141501
  • a4f47dc0 on github
  • Prev Build on main (#24303096167)
  • Next Build on main (#24317901422)
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