Represents a matched test or example.
| 16 | |
| 17 | @dataclass |
| 18 | class TestMatch: |
| 19 | """Represents a matched test or example.""" |
| 20 | |
| 21 | name: str # Test/example name (e.g., "string", "Animartrix") |
| 22 | path: str # Relative path from project root |
| 23 | type: str # "unit_test" or "example" |
| 24 | score: float # Match score (0.0-1.0, higher is better) |
| 25 | length: int = 0 # Length for tie-breaking (shorter is better) |
| 26 | hpp_filter: Optional[str] = ( |
| 27 | None # Optional .hpp filename filter (e.g., "backbeat.hpp") |
| 28 | ) |
| 29 | |
| 30 | |
| 31 | def _apply_hpp_filter( |
no outgoing calls
no test coverage detected