vomebook commited on
Commit ·
bcb0c5c
1
Parent(s): 6aa6e9f
Group backend cache contracts
Browse files- quality/mutation-reviews/mutation-equivalent-mutation-gate.json +1 -1
- scripts/check_search_words_mutation.py +1 -1
- tests/search/backend/README.txt +2 -0
- tests/{test_cache_and_malformed.py → search/backend/test_cache_and_malformed.py} +0 -0
- tests/{test_cache_core_contract.py → search/backend/test_cache_core_contract.py} +0 -0
- tests/test_mutation_gate_main.py +2 -1
quality/mutation-reviews/mutation-equivalent-mutation-gate.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"tool": "mutmut 3.8.1",
|
| 3 |
"source": "scripts/check_search_words_mutation.py",
|
| 4 |
-
"source_sha256": "
|
| 5 |
"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.",
|
| 6 |
"equivalent": {
|
| 7 |
"scripts.check_search_words_mutation.x_mutation_errors__mutmut_22": {
|
|
|
|
| 1 |
{
|
| 2 |
"tool": "mutmut 3.8.1",
|
| 3 |
"source": "scripts/check_search_words_mutation.py",
|
| 4 |
+
"source_sha256": "e41eebdb1077fe063dd53b91bfac2888ff06300e80ec0a469a93bc90913e108f",
|
| 5 |
"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.",
|
| 6 |
"equivalent": {
|
| 7 |
"scripts.check_search_words_mutation.x_mutation_errors__mutmut_22": {
|
scripts/check_search_words_mutation.py
CHANGED
|
@@ -62,7 +62,7 @@ SPECS: dict[str, tuple[str, list[str], list[str]]] = {
|
|
| 62 |
"data_formats": ("test_data_formats_contract.py", [], []),
|
| 63 |
"search_indexes": ("test_native_search_indexes.py", [], []),
|
| 64 |
"reader_identity": ("test_reader_identity_contract.py", [], []),
|
| 65 |
-
"cache_core": ("test_cache_core_contract.py", [], []),
|
| 66 |
"reader_index": ("test_reader_index_contract.py", [], []),
|
| 67 |
"upstream_http": ("test_upstream_http.py", [], []),
|
| 68 |
"search_execution": ("search/backend/test_search_execution.py", EXECUTION_TESTS, []),
|
|
|
|
| 62 |
"data_formats": ("test_data_formats_contract.py", [], []),
|
| 63 |
"search_indexes": ("test_native_search_indexes.py", [], []),
|
| 64 |
"reader_identity": ("test_reader_identity_contract.py", [], []),
|
| 65 |
+
"cache_core": ("search/backend/test_cache_core_contract.py", [], []),
|
| 66 |
"reader_index": ("test_reader_index_contract.py", [], []),
|
| 67 |
"upstream_http": ("test_upstream_http.py", [], []),
|
| 68 |
"search_execution": ("search/backend/test_search_execution.py", EXECUTION_TESTS, []),
|
tests/search/backend/README.txt
CHANGED
|
@@ -19,6 +19,8 @@ From the repository root:
|
|
| 19 |
python -B -m unittest -v tests.search.backend.test_search_words_contract
|
| 20 |
python -B scripts/check_search_words_mutation.py --module search_words
|
| 21 |
python -B scripts/check_search_words_mutation.py --module search_matching
|
|
|
|
|
|
|
| 22 |
|
| 23 |
The full integration and isolated pure contracts retain their
|
| 24 |
original assertions. The mutation command uses the complete existing source
|
|
|
|
| 19 |
python -B -m unittest -v tests.search.backend.test_search_words_contract
|
| 20 |
python -B scripts/check_search_words_mutation.py --module search_words
|
| 21 |
python -B scripts/check_search_words_mutation.py --module search_matching
|
| 22 |
+
python -B -m unittest -v tests.search.backend.test_cache_and_malformed tests.search.backend.test_cache_core_contract
|
| 23 |
+
python -B scripts/check_search_words_mutation.py --module cache_core
|
| 24 |
|
| 25 |
The full integration and isolated pure contracts retain their
|
| 26 |
original assertions. The mutation command uses the complete existing source
|
tests/{test_cache_and_malformed.py → search/backend/test_cache_and_malformed.py}
RENAMED
|
File without changes
|
tests/{test_cache_core_contract.py → search/backend/test_cache_core_contract.py}
RENAMED
|
File without changes
|
tests/test_mutation_gate_main.py
CHANGED
|
@@ -297,7 +297,8 @@ class MutationGateMainTests(unittest.TestCase):
|
|
| 297 |
|
| 298 |
def test_full_selected_and_native_contracts_and_dependencies_are_copied(self):
|
| 299 |
for module in ('search_words', 'search_matching', 'search_execution', 'search_indexes', 'reader_identity',
|
| 300 |
-
'search_projection', 'search_candidates', 'search_bootstrap', 'search_filters', 'folder_tree'
|
|
|
|
| 301 |
with self.subTest(module=module):
|
| 302 |
self.prepare_module(module)
|
| 303 |
self.calls.clear()
|
|
|
|
| 297 |
|
| 298 |
def test_full_selected_and_native_contracts_and_dependencies_are_copied(self):
|
| 299 |
for module in ('search_words', 'search_matching', 'search_execution', 'search_indexes', 'reader_identity',
|
| 300 |
+
'search_projection', 'search_candidates', 'search_bootstrap', 'search_filters', 'folder_tree',
|
| 301 |
+
'cache_core'):
|
| 302 |
with self.subTest(module=module):
|
| 303 |
self.prepare_module(module)
|
| 304 |
self.calls.clear()
|