Skip to content

test: cover mcpregistry and store helpers - #7722

Open
innocarpe wants to merge 1 commit into
esengine:main-v2from
innocarpe:contrib/r8-mcpregistry-store-tests
Open

test: cover mcpregistry and store helpers#7722
innocarpe wants to merge 1 commit into
esengine:main-v2from
innocarpe:contrib/r8-mcpregistry-store-tests

Conversation

@innocarpe

Copy link
Copy Markdown
Contributor

Summary

Add tests for untested helpers in two packages (28 cases):

internal/mcpregistry (15) — npmPackageVersion/pythonPackageVersion (bare, scoped, prerelease, extra-specifier forms), cacheKey (7: exact format, normalization pairs, 4 distinctness pairs — including the naive-concatenation collision ("demo",10) vs ("demo1",0) that the \x00 separator prevents, and embedded-NUL safety).

internal/store (13) — sessionStem (6), RemoteServeLockName (2, was missing from existing filename tests), boundRemoteComponent (5: over-budget truncation landing exactly at budget, multibyte rune-boundary).

Issues

None — coverage gap, no issue report.

Verification

  • go test ./internal/mcpregistry/ ./internal/store/ — pass
  • go vet / gofmt -l — clean

Documentation impact

Documentation-impact: none - test-only addition.

Cache impact

Cache-impact: none - test-only; not a cache-sensitive path.
Cache-guard: N/A
System-prompt-review: N/A

@github-actions github-actions Bot added the v2 Go rewrite (1.x) — main-v2 branch, active development label Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant