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

stacklok / toolhive / 24566540368
66%

Build:
DEFAULT BRANCH: main
Ran 17 Apr 2026 01:10PM UTC
Jobs 1
Files 637
Run time 3min
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

17 Apr 2026 01:04PM UTC coverage: 66.284% (+0.1%) from 66.174%
24566540368

push

github

web-flow
Add unit tests for pkg/vmcp/cli serve and validate logic (#4898)

* Add unit tests for pkg/vmcp/cli serve and validate logic

Cover loadAndValidateConfig, loadAuthServerConfig, discoverBackends,
createSessionFactory, and Validate with table-driven unit tests in
pkg/vmcp/cli. Also moves the existing loadAuthServerConfig test from
cmd/vmcp/app (where it lived before the thin-wrap refactor) to
pkg/vmcp/cli where the function now lives.

env var tests use os.Setenv + t.Cleanup via a setEnvForTest helper
to remain compatible with t.Parallel().

Part of #4808. Closes #4881.

* fixes from review

---------

Co-authored-by: taskbot <taskbot@users.noreply.github.com>

10 of 17 new or added lines in 1 file covered. (58.82%)

37 existing lines in 5 files now uncovered.

57665 of 86997 relevant lines covered (66.28%)

60.88 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
27.61
23.27% pkg/vmcp/cli/serve.go

Coverage Regressions

Lines Coverage ∆ File
14
74.44
-5.19% pkg/client/config.go
11
69.23
-14.1% pkg/client/discovery.go
8
23.56
-4.6% pkg/client/manager.go
2
93.94
-6.06% pkg/foreach/foreach.go
2
82.29
-0.21% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 24566540368.1 17 Apr 2026 01:10PM UTC 637
66.28
GitHub Action Run
Source Files on build 24566540368
  • Tree
  • List 637
  • Changed 10
  • Source Changed 1
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24566540368
  • b8b76cce on github
  • Prev Build on main (#24565531309)
  • Next Build on main (#24566568053)
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