vomebook commited on
Commit ·
9b0cfab
1
Parent(s): 530e839
Group backend search index contracts
Browse filesFiles changed (5)
1234567{"tool": "mutmut 3.8.1","source": "scripts/check_search_words_mutation.py","source_sha256": "04596368f2b5bf7c5b9e49297e66e2f588ba19089ee3a13597c3669acd8b531a","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": "a7a224cadf0e82537627057cf4eeb0af2680f350cba47791b286e9069cfa23e1","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": {
59 unmodified lines6061626364656659 unmodified lines"search_words": ("search/backend/test_search_words_contract.py", SELECTED_TESTS, []),"search_matching": ("search/backend/test_search_words_contract.py", MATCHING_TESTS, ["search_words.py"]),"data_formats": ("test_data_formats_contract.py", [], []),"search_indexes": ("test_native_search_indexes.py", [], []),"reader_identity": ("test_reader_identity_contract.py", [], []),"cache_core": ("search/backend/test_cache_core_contract.py", [], []),"reader_index": ("test_reader_index_contract.py", [], []),59 unmodified lines6061626364656659 unmodified lines"search_words": ("search/backend/test_search_words_contract.py", SELECTED_TESTS, []),"search_matching": ("search/backend/test_search_words_contract.py", MATCHING_TESTS, ["search_words.py"]),"data_formats": ("test_data_formats_contract.py", [], []),"search_indexes": ("search/backend/test_native_search_indexes.py", [], []),"reader_identity": ("test_reader_identity_contract.py", [], []),"cache_core": ("search/backend/test_cache_core_contract.py", [], []),"reader_index": ("test_reader_index_contract.py", [], []),
1234517 unmodified lines2324252627282930Backend search projection, lookup and order contracts=====================================================From the repository root:17 unmodified linespython -B scripts/check_search_words_mutation.py --module cache_corepython -B -m unittest -v tests.search.backend.test_record_metadata_contractpython -B scripts/check_search_words_mutation.py --module record_metadataThe full integration and isolated pure contracts retain theiroriginal assertions. The mutation command uses the complete existing sourceinventory and its scoped, hash-bound survivor review in quality/mutation-reviews/.This directory does not represent coverage of every backend search module.1234517 unmodified lines2324252627282930313233343536Backend search, cache and metadata contracts============================================From the repository root:17 unmodified linespython -B scripts/check_search_words_mutation.py --module cache_corepython -B -m unittest -v tests.search.backend.test_record_metadata_contractpython -B scripts/check_search_words_mutation.py --module record_metadatapython -B -m unittest -v tests.search.backend.test_native_search_indexes tests.test_exact_search_performancepython -B scripts/check_search_words_mutation.py --module search_indexesThe native index cases require the optional extension; CI builds it explicitly.The full integration and isolated pure contracts retain their originalassertions. Each mutation command tests its selected module's complete generatedmutation inventory with its existing selected tests and scoped, hash-boundsurvivor review in quality/mutation-reviews/. The search-index mutation gateselects the PythonSearchIndexTests class; it does not mutate the native parser.This directory does not represent coverage of every backend search module.
146 unmodified lines147148149150151152153146 unmodified linesimport tempfilefrom pathlib import Pathfrom backend.search_indexes import load_ngram_indexfrom tests.test_native_search_indexes import varintdocs = ['马克思 恩格斯', '共产党宣言', '共产党文件', '恩格斯', 'Capital']app.records = [dict(Repo='A' if i % 2 else 'B') for i in range(len(docs))]app.repo_records_map = {'A':[1,3], 'B':[0,2,4]}146 unmodified lines147148149150151152153146 unmodified linesimport tempfilefrom pathlib import Pathfrom backend.search_indexes import load_ngram_indexfrom tests.search.backend.test_native_search_indexes import varintdocs = ['马克思 恩格斯', '共产党宣言', '共产党文件', '恩格斯', 'Capital']app.records = [dict(Repo='A' if i % 2 else 'B') for i in range(len(docs))]app.repo_records_map = {'A':[1,3], 'B':[0,2,4]}
quality/mutation-reviews/mutation-equivalent-mutation-gate.json+1-1
scripts/check_search_words_mutation.py+1-1
tests/search/backend/README.txt+11-5
tests/test_native_search_indexes.py → tests/search/backend/test_native_search_indexes.pyRenamed
tests/test_exact_search_performance.py+1-1