getTestHint() — mcp Function Reference
Architecture documentation for the getTestHint() function in server.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 90d142ad_ab97_605e_ade9_a397841554ce["getTestHint()"] 6cc13fa0_0ce9_926f_417f_6b3f50082f67["injectOverviewInstructions()"] 6cc13fa0_0ce9_926f_417f_6b3f50082f67 -->|calls| 90d142ad_ab97_605e_ade9_a397841554ce style 90d142ad_ab97_605e_ade9_a397841554ce fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/server.ts lines 275–286
private getTestHint(primaryLanguage: string): string {
switch (primaryLanguage.toLowerCase()) {
case 'python': return '\n\n**Test with:** `python -m pytest <test_file> -x`';
case 'javascript':
case 'typescript': return '\n\n**Test with:** `npm test`';
case 'go': return '\n\n**Test with:** `go test ./...`';
case 'rust': return '\n\n**Test with:** `cargo test`';
case 'java': return '\n\n**Test with:** `mvn test` or `gradle test`';
case 'ruby': return '\n\n**Test with:** `bundle exec rake test`';
default: return '';
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getTestHint() do?
getTestHint() is a function in the mcp codebase.
What calls getTestHint()?
getTestHint() is called by 1 function(s): injectOverviewInstructions.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free