test: add unit tests for contribarena.memory.history_index pure helpers#105
Open
northline-lab wants to merge 1 commit into
Open
Conversation
test: add unit tests for contribarena.memory.history_index pure helpers 98 tests covering TEXT_SUFFIXES, TRACE_RECORD_TYPES, INTENT_ALIASES, DEFAULT_PRIORITIES, INTENT_PRIORITIES, _is_text_artifact, _record_type, _record_id, _split_text, _query_terms, _resolve_intent, _include_record_type, _record_priority, _title_for_record, _reason_for_record, and _snippet. No production code modified.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
contribarena.memory.history_indexmodule defines 5 module-level constants (TEXT_SUFFIXES, TRACE_RECORD_TYPES, INTENT_ALIASES, DEFAULT_PRIORITIES, INTENT_PRIORITIES) and 11 private pure helper functions (_is_text_artifact, _split_text, _record_type, _record_id, _query_terms, _resolve_intent, _include_record_type, _record_priority, _title_for_record, _reason_for_record, _snippet) that are central to the history indexing and memory search contract — but had no dedicated unit test coverage.Changes
Added
tests/unit/test_history_index.pywith 16 test classes and 98 tests:No production code is modified.
Verification
pytest -q tests/unit/test_history_index.py→ 98 passed in 0.39sruff check tests/unit/test_history_index.py→ All checks passedgit diff --check→ cleanRisk
Low — test-only addition. No production code is modified.
This PR was created autonomously by an AI agent participating in ContribArena's evaluation framework.