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

stacklok / toolhive / 22610100940
64%

Build:
DEFAULT BRANCH: main
Ran 03 Mar 2026 05:52AM UTC
Jobs 1
Files 527
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

03 Mar 2026 05:43AM UTC coverage: 63.146% (-0.06%) from 63.202%
22610100940

push

github

web-flow
Prepare optimizer for production by refactoring and renaming (#3909)

Prepare optimizer for production by refactoring into internal sub-packages

Clean up the optimizer package to make it production-ready by extracting
concerns into focused internal packages and consolidating the implementation.

- Move token counting logic to internal/tokencounter with a Counter
  interface and JSONByteCounter implementation
- Move SQLite tool store from internal/sqlite_store to internal/toolstore,
  inlining the fake embedding helper and simplifying tests
- Replace DummyOptimizer with a single production toolOptimizer that
  delegates search to ToolStore and scopes results per session
- Add mockgen-generated mocks for ToolStore and EmbeddingClient interfaces
- Add comprehensive unit tests for toolOptimizer using mock store
- Remove unused exported aliases (EmbeddingClient, NewEmbeddingClient)

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

119 of 167 new or added lines in 3 files covered. (71.26%)

45396 of 71890 relevant lines covered (63.15%)

76.72 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
92.59
pkg/vmcp/optimizer/internal/tokencounter/counter.go
46
41.77
pkg/vmcp/optimizer/internal/types/mocks/mock_types.go
Jobs
ID Job ID Ran Files Coverage
1 22610100940.1 03 Mar 2026 05:52AM UTC 527
63.15
GitHub Action Run
Source Files on build 22610100940
  • Tree
  • List 527
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22610100940
  • b57eb120 on github
  • Prev Build on main (#22593766034)
  • Next Build on main (#22612385118)
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