Expand test coverage to 96% (and add AGENTS.md)#21
Draft
jdidion wants to merge 1 commit into
Draft
Conversation
Add 49 unit tests targeting previously-uncovered branches identified via
cargo-llvm-cov, plus an AGENTS.md documenting build/test/coverage conventions.
Coverage (features affinity,local-batch,retry):
region 93.31% -> 95.26%, function 93.87% -> 96.30%, line 93.88% -> 96.05%
New tests cover:
- panic.rs: payload() accessor and PartialEq/Eq
- bee/error.rs: From<E> for ApplyRefError, into_apply_error arms, None inputs
- bee/context.rs: task_id/attempt, submit() without local ctx, From<TaskId>
- bee/worker.rs: Worker::map Fatal/Retryable arms, apply_ref Fatal/Cancelled
- bee/stock/thunk.rs: PunkWorker ok + panic-catch, worker Clone impls
- bee/stock/call.rs: Callable Deref/DerefMut
- bee/queen.rs: Default for CloneQueen
- hive/builder/{bee,full,open}.rs: From<Config>/From<Q>, with_queen_mut, config_ref
- hive/outcome/impl.rs: error(), subtask_ids(), try_into_input WithSubtasks
- hive/outcome/iter.rs: select_*_results/outputs, into_results/outputs, drop-unrequested
- hive/outcome/queue.rs: outcomes_deref_mut path
- hive/outcome/store.rs: len, remove_all, OwnedOutcomes group (unwrap,
ok_or_unwrap_errors, into_unprocessed ordered/unordered, iter_*)
No production code or build-system changes. clippy -D warnings, fmt --check,
doc-tests, and the full suite (377 lib + 26 doc) all pass.
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.
Improved test coverage for the beekeeper Rust worker-pool library by adding 49 targeted unit tests for previously-uncovered non-trivial branches, identified via cargo-llvm-cov. Coverage rose from 93.31%/93.87%/93.88% to 95.26%/96.30%/96.05% (region/function/line) under the canonical feature set. Added AGENTS.md. No production code or build-system changes. All checks pass (clippy -D warnings, fmt --check, 377 lib tests, 26 doctests). Committed locally to branch modernize/beekeeper off main; nothing pushed.
Changes
rustup run stable cargo llvm-cov)Test coverage
Review findings (Claude code-reviewer)
src/bee/error.rs)src/bee/error.rs)src/bee/stock/thunk.rs)src/bee/stock/call.rs)src/hive/outcome/store.rs)AGENTS.md)