Skip to content

test: add extended MCP tool tests and parseDeps coverage#3

Merged
hermanngeorge15 merged 2 commits into
mainfrom
feat/extended-test-coverage
Mar 12, 2026
Merged

test: add extended MCP tool tests and parseDeps coverage#3
hermanngeorge15 merged 2 commits into
mainfrom
feat/extended-test-coverage

Conversation

@hermanngeorge15
Copy link
Copy Markdown
Contributor

Summary

  • Add 30+ tests for tools_extended.go covering parseDeps (go.mod, package.json, requirements.txt), release history/diff handlers, watch version detection, dependency matrix, service graph, and edge cases
  • MCP server coverage: 47% → 62.3%

Test categories

Category Tests
parseDeps go.mod (require blocks, single require, comments), package.json (deps, devDeps, empty, invalid), requirements.txt (operators, plain names, comments)
handleReleaseHistory nil store, missing param, with SQLite store
handleReleaseDiff missing param, unknown service, no K8s fallback
handleWatchReleases version change detection, no services
handleServiceGraph no services, shared dependencies with edges
handleDependencyMatrix no services, no dep files
Server lifecycle Shutdown nil/with-store, accessors, depFiles var

Test plan

  • go test -race ./... — all 22 packages pass
  • go vet ./... — clean

🤖 Generated with Claude Code

hermanngeorge15 and others added 2 commits March 12, 2026 12:37
- Add parseDeps tests for go.mod, package.json, requirements.txt
- Add handleReleaseHistory tests (nil store, missing param, with store)
- Add handleReleaseDiff tests (missing param, unknown service, no K8s)
- Add handleWatchReleases version change detection test
- Add handleDependencyMatrix and handleServiceGraph edge cases
- Add Shutdown, accessors, depFiles, and other coverage tests
- mcpserver coverage: 47% → 62.3%

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hermanngeorge15 hermanngeorge15 merged commit 9fe6f0e into main Mar 12, 2026
3 checks passed
@hermanngeorge15 hermanngeorge15 deleted the feat/extended-test-coverage branch March 12, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant