Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Consiliency_treesitter-chunker /tests /test_boundary_resolution_contract.py
| from typing import get_args | |
| from chunker.boundary import ( | |
| RESOLUTION_MODES, | |
| RESOLUTION_STATUSES, | |
| ResolutionMode, | |
| ResolutionStatus, | |
| ) | |
| from chunker.boundary.types import METRIC_KEYS | |
| from chunker.symbol_graph import ( | |
| RESOLUTION_MODES as SYMBOL_GRAPH_RESOLUTION_MODES, | |
| ResolutionMode as SymbolGraphResolutionMode, | |
| ResolutionStatus as SymbolGraphResolutionStatus, | |
| ) | |
| def test_resolution_status_values_are_exact_and_exported(): | |
| assert get_args(ResolutionStatus) == ("resolved", "ambiguous", "unresolved") | |
| assert get_args(ResolutionStatus) == RESOLUTION_STATUSES | |
| def test_resolution_mode_values_are_exact_and_exported(): | |
| assert get_args(ResolutionMode) == ("strict", "permissive") | |
| assert get_args(ResolutionMode) == RESOLUTION_MODES | |
| def test_symbol_graph_resolution_vocabulary_reuses_shared_values(): | |
| assert get_args(SymbolGraphResolutionStatus) == RESOLUTION_STATUSES | |
| assert get_args(SymbolGraphResolutionMode) == RESOLUTION_MODES | |
| assert SYMBOL_GRAPH_RESOLUTION_MODES == RESOLUTION_MODES | |
| def test_resolution_counter_names_are_in_metric_keys(): | |
| assert { | |
| "resolved_edges", | |
| "ambiguous_edges", | |
| "unresolved_edges", | |
| }.issubset(METRIC_KEYS) | |
Xet Storage Details
- Size:
- 1.23 kB
- Xet hash:
- 299d81783b23c0f7d729cd9b6d43896e7c2afc2b541f84eb52d8373a6e486cad
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.