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

stacklok / toolhive / 18973296783

31 Oct 2025 01:00PM UTC coverage: 47.58% (+0.1%) from 47.459%
18973296783

push

github

web-flow
vMCP: Add comprehensive tests for cache and registry components (#2407)

Add comprehensive tests for vMCP cache and registry components

Add test coverage for pre-existing vMCP infrastructure components:
- CachedToken helper methods (IsExpired, ShouldRefresh)
- ImmutableRegistry implementation (Get, List, Count, BackendToTarget)

This provides test coverage for the core vmcp types that were implemented
in previous PRs but lacked comprehensive tests.

Changes:
- Add cache_test.go with 26 test cases for CachedToken utilities
- Add registry_test.go with comprehensive registry behavior tests
- Fix linter issues (goconst, paralleltest)

Test coverage:
- pkg/vmcp/cache: 417 lines of tests
- pkg/vmcp/registry: 916 lines of tests
- Total: 1,333 lines of test coverage

All tests pass and are properly parallelized.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

20848 of 43817 relevant lines covered (47.58%)

22.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.06
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

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

© 2025 Coveralls, Inc