Skip to main content
Glama
coverage_baseline.md1.8 kB
# Coverage Baseline ## Overview This document summarizes the current coverage and identifies areas for potential improvement in the future. ## Coverage Metrics (Current) | Module | Statements | Miss | Cover | |--------|------------|------|-------| | yellhorn_mcp/__init__.py | 1 | 0 | 100% | | yellhorn_mcp/cli.py | 44 | 1 | 98% | | yellhorn_mcp/lsp_utils.py | 272 | 50 | 82% | | yellhorn_mcp/server.py | 455 | 46 | 90% | | yellhorn_mcp/tree_utils.py | 36 | 0 | 100% | | **TOTAL** | **808** | **97** | **88%** | | Module | Line Coverage | |--------|-------------:| | yellhorn_mcp | 88% | | examples | 0.00% | ## Key Areas ### Resource API - `list_resources` and `read_resource` are well-tested but could have more error path testing - Edge cases for invalid or malformed resources are covered ### Cost & Metrics - `calculate_cost` - Good coverage for different models and tiers - `format_metrics_section` - Covered for different metadata formats ### Git Helpers - `get_default_branch` - Good coverage including error paths ### CLI - Error handling in cli.py has good coverage - Argument parsing is well tested ### Long-running Async Flows - `process_workplan_async` - Both Gemini and OpenAI paths well-tested - `process_judgement_async` - Good coverage for OpenAI and Gemini paths ### LSP Mode - Base extractions for Python and Go are well-tested with rich examples - Edge cases like syntax errors and binary files are covered - Enum extraction and Go receiver methods with generics have strong test coverage ### MCP Decorators - Basic validation of tool metadata is covered ## Examples Module The examples module (`client_example.py`) has 0% coverage and could be addressed in the future. ## Target Thresholds - Line Coverage: ≥ 70% (currently at 88%) - Branch Coverage: ≥ 80%

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/msnidal/yellhorn-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server