vomebook commited on
Commit ·
4cdaec2
1
Parent(s): 4c52a62
Group backend proxy ownership contracts
Browse filesFiles changed (8)
- quality/mutation-reviews/mutation-equivalent-mutation-gate.json+1-1
- scripts/check_search_words_mutation.py+1-1
- tests/proxy/README.txtAdded+13
- tests/proxy/__init__.pyAdded+1
- tests/test_proxy_ownership.py → tests/proxy/test_proxy_ownership.pyRenamed
- tests/test_proxy_streams_contract.py → tests/proxy/test_proxy_streams_contract.pyRenamed
- tests/test_mutation_gate_main.py+1-1
- tests/test_quality_inventory.py+1-1
1234567{"tool": "mutmut 3.8.1","source": "scripts/check_search_words_mutation.py","source_sha256": "c23b5a40a5597de67649a1d9867fd7ae07d8577def62d985b49fe6eb7fd73260","scope": "Only ordinary built-in dicts with built-in string keys and integer values, without concurrent mutation, dict subclasses, tracing, introspection, or monkeypatching. Comparison is the return value and exceptions of mutation_errors. The initial required-field validation is executed unchanged. These survivors remain survivors, not killed.","equivalent": {"scripts.check_search_words_mutation.x_mutation_errors__mutmut_22": {1234567{"tool": "mutmut 3.8.1","source": "scripts/check_search_words_mutation.py","source_sha256": "fefe4fd5ddbceb3bf2565b55ba1b52a80e39d4ea043486cf981f127df413171c","scope": "Only ordinary built-in dicts with built-in string keys and integer values, without concurrent mutation, dict subclasses, tracing, introspection, or monkeypatching. Comparison is the return value and exceptions of mutation_errors. The initial required-field validation is executed unchanged. These survivors remain survivors, not killed.","equivalent": {"scripts.check_search_words_mutation.x_mutation_errors__mutmut_22": {
67 unmodified lines6869707172737467 unmodified lines"search_execution": ("search/backend/test_search_execution.py", EXECUTION_TESTS, []),"record_metadata": ("search/backend/test_record_metadata_contract.py", [], []),"search_filters": ("search/backend/test_search_filters_mutation_contract.py", [], []),"proxy_streams": ("test_proxy_streams_contract.py", [], []),"folder_tree": ("search/backend/test_folder_tree_mutation_contract.py", [], []),"search_projection": ("search/backend/test_search_projection_mutation_contract.py", [], []),"search_candidates": ("search/backend/test_search_candidates_mutation_contract.py", [], ["search_indexes.py"]),67 unmodified lines6869707172737467 unmodified lines"search_execution": ("search/backend/test_search_execution.py", EXECUTION_TESTS, []),"record_metadata": ("search/backend/test_record_metadata_contract.py", [], []),"search_filters": ("search/backend/test_search_filters_mutation_contract.py", [], []),"proxy_streams": ("proxy/test_proxy_streams_contract.py", [], []),"folder_tree": ("search/backend/test_folder_tree_mutation_contract.py", [], []),"search_projection": ("search/backend/test_search_projection_mutation_contract.py", [], []),"search_candidates": ("search/backend/test_search_candidates_mutation_contract.py", [], ["search_indexes.py"]),
12345678910111213Backend proxy ownership contracts=================================
From the repository root:
python -B -m unittest -v tests.proxy.test_proxy_streams_contract tests.proxy.test_proxy_ownership python -B scripts/check_search_words_mutation.py --module proxy_streams
The mutation gate covers the generated inventory for backend/proxy_streams.pyusing the original isolated contract and its scoped, hash-bound survivor review.The ownership integration tests remain in both backend coverage and the upstreamresponsiveness suite; tests.test_async_proxy retains the shared fake helpers.This directory does not represent coverage of the whole proxy or site.1"""Backend proxy contracts and integration tests."""297 unmodified lines298299300301302303304297 unmodified linesdef test_full_selected_and_native_contracts_and_dependencies_are_copied(self):for module in ('search_words', 'search_matching', 'search_execution', 'search_indexes', 'reader_identity','search_projection', 'search_candidates', 'search_bootstrap', 'search_filters', 'folder_tree','cache_core', 'record_metadata', 'reader_index'):with self.subTest(module=module):self.prepare_module(module)self.calls.clear()297 unmodified lines298299300301302303304297 unmodified linesdef test_full_selected_and_native_contracts_and_dependencies_are_copied(self):for module in ('search_words', 'search_matching', 'search_execution', 'search_indexes', 'reader_identity','search_projection', 'search_candidates', 'search_bootstrap', 'search_filters', 'folder_tree','cache_core', 'record_metadata', 'reader_index', 'proxy_streams'):with self.subTest(module=module):self.prepare_module(module)self.calls.clear()
1146 unmodified lines11471148114911501151115211531146 unmodified linesself.assertEqual(outcomes, {"killed": 1, "survived": 0, "timeout": -24, "unrun": None})def test_proxy_mutation_gate_includes_entire_contract_and_hash_bound_reviews(self):self.assertEqual(SPECS["proxy_streams"], ("test_proxy_streams_contract.py", [], []))root = Path(__file__).resolve().parents[1]review = json.loads((root / "quality/mutation-reviews/mutation-equivalent-proxy-streams.json").read_text())self.assertEqual(review["tool"], "mutmut 3.8.1")1146 unmodified lines11471148114911501151115211531146 unmodified linesself.assertEqual(outcomes, {"killed": 1, "survived": 0, "timeout": -24, "unrun": None})def test_proxy_mutation_gate_includes_entire_contract_and_hash_bound_reviews(self):self.assertEqual(SPECS["proxy_streams"], ("proxy/test_proxy_streams_contract.py", [], []))root = Path(__file__).resolve().parents[1]review = json.loads((root / "quality/mutation-reviews/mutation-equivalent-proxy-streams.json").read_text())self.assertEqual(review["tool"], "mutmut 3.8.1")
quality/mutation-reviews/mutation-equivalent-mutation-gate.json+1-1
scripts/check_search_words_mutation.py+1-1
tests/proxy/README.txtAdded+13
tests/proxy/__init__.pyAdded+1
tests/test_proxy_ownership.py → tests/proxy/test_proxy_ownership.pyRenamed
tests/test_proxy_streams_contract.py → tests/proxy/test_proxy_streams_contract.pyRenamed
tests/test_mutation_gate_main.py+1-1
tests/test_quality_inventory.py+1-1