Repository navigation
Add tests for the action record and time partition factories - #165
Merged
Merged
Conversation
ActionRecordFactory and TimePartitionFactory had no direct tests. The new tests cover both overloads of each, including a loaded action record whose actor is gone: it is kept in persistent data, attached to no one, and nothing is thrown. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Self-review rubric
Judgment notes, no change made
The tests are coverage only. The anchor is green both locally and in CI, and no do-not-auto-merge path is touched. This comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
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
ActionRecordFactoryTestis added, with four characterization tests. A record created from an actor is added to persistent data and to that actor. A record loaded from saved data is attached to its actor when the actor exists. A loaded record whose actor is gone is still kept in persistent data, but attached to no one, and nothing is thrown (the "fail silently, this actor is likely dead" branch). A record of a missing actor is not attached to any other actor.TimePartitionFactoryTestis added, with four characterization tests. Both overloads (from a length and from saved data) append to persistent data, the length and timestamp survive the load, partitions keep their creation order, andgetSecondsElapsedadds up the lengths of the partitions created.Work selection
All three open issues are waiting on owner decisions, so this cycle adds tests (Stage B) instead of implementing an issue:
No tracking issue: the coverage gap was found during triage.
Test plan
mvn clean test: 214 tests run, 0 failures, 0 errors, BUILD SUCCESSActionRecordFactoryTest(4) andTimePartitionFactoryTest(4) appear in the surefire output as run and passingThis PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
🤖 Generated with Claude Code
drafted by Claude on behalf of Daniel Stephenson