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

stacklok / toolhive / 22910719308

10 Mar 2026 03:38PM UTC coverage: 63.797% (-0.05%) from 63.851%
22910719308

push

github

web-flow
Strengthen session hijacking prevention types and tests (#4067)

- Change PreventSessionHijacking to accept sessiontypes.MultiSession
  directly instead of interface{}, enforcing the contract at compile
  time and removing the runtime type assertion
- Update tests to call the decorated methods (CallTool, ReadResource,
  GetPrompt) rather than the internal validateCaller, verifying that
  validation is correctly integrated end-to-end
- Remove TestConcurrentValidation as the decorator holds no mutable
  state, making a concurrency test unnecessary

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

10 of 10 new or added lines in 3 files covered. (100.0%)

43 existing lines in 7 files now uncovered.

47367 of 74247 relevant lines covered (63.8%)

74.14 hits per line

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

79.79
/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

© 2026 Coveralls, Inc