Repository navigation
test: cover query engine error paths and memory injection - #41
Merged
Merged
Conversation
run_query's LLM-failure exit, memory snapshot injection, malformed tool arguments, unknown tools and tool exceptions were untested (query.py at 78%). Add 9 cases with a stubbed LLMRouter, bringing it to 100%. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
自动维护改动
类型:维护
改动:为 harness/engine/query.py 的 run_query 补 9 个测试(LLM 异常退出、记忆快照注入/跳过、畸形工具参数、未知工具、工具执行异常、tool 消息历史),覆盖率 78%→100%
测试:通过(本地全量 484 passed / 1 skipped)
参考:无
本 PR 由每日维护任务生成,请人工 review 后再合并。
🤖 Generated with Claude Code