test: combine existing branch cleanup checks #10
Loading…
Reference in a new issue
No description provided.
Delete branch "test/combine-existing-branch-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Combines two tests that repeat the same Git fixture and setup failure, removing one repository setup and worktree lifecycle. The combined test retains the checkout-by-name and branch-preservation assertions.
Review
01M5Q1GXC1TB9QPSAF7HA6NPVD— head4d900d0bc64727eb164fd68b85212b76889973a2Review — j4k-oss/worktree-add @
9c1c4f5320Scope: diff against base tree
b760cf357a4eReview finished: 10 succeeded, 0 failed
Triage: settled
Facts: current review-wide projection
Computed under:
Findings (1)
low — Unborn-repository tests accept an incorrect rejection of supported Git
01M5Q1MKGRJA8RREH14PP2SYJQsrc/cli/run-worktree-add.test.ts(snippet)01M5Q1N5NEAZYKG2B5PT777Q57· valid: The grounded excerpt shows the test sets oldGitVersion from the production helper findTooOldGitForUnbornHead(). The reviewer's static trace holds together: the test picks between "created" and the refusal message, and between "feature/new" and "no worktree", using that helper's result, while runWorktreeAdd throws formatUnbornHeadGitMessage(oldGitVersion) whenever the same helper returns a value. So the test's oracle is the implementation's own decision, the 'expectation copied from the implementation' disconnect the test guidelines name. The claim gives all three required parts. Promised behavior: creation succeeds in an unborn repository on supported Git. Weakness: the expected outcome tracks the helper. Missed regression: changing the minor-version comparison to >= 99 misclassifies Git 2.47 as unsupported, production refuses, and both assertions shift to accept the refusal, so the test stays green. The cleanup test has the same weakness, since it derives its expected error from the helper and accepts an absent destination. The reviewer reports searching the test files and finding no independent unit coverage of the helper's version predicate. The batch offers nothing against that, so no other test is shown to catch the mutation. The proposed repair keeps both integration tests and replaces only the oracle with an independent capability probe. That follows the guidelines' preference for repair over deletion. This matches prior claim 01M5KYQPY3NZD1KME8DGD71ZFZ, judged valid on the same anchor. I reassessed it independently here and nothing in this batch suggests a fix or a changed condition. Low severity is appropriate.Other claims
Coverage
Coverage pass: 01M5Q1H568FYDQMN0DJPZ8RZ7F
Accounting: complete (all slots terminal; see slot results for failures)
Slot health: healthy
Claim
01M5Q1MKGRJA8RREH14PP2SYJQidentifies the existing unborn-HEAD test weakness already recorded in #5. Both affected tests and the production version guard are unchanged between base9a9070d2df46c1d87ca9cfabdf862cc4959aa5fdand head4d900d0bc64727eb164fd68b85212b76889973a2.The weakness remains unfixed. This PR combines two committed-repository tests with identical setup and preserves their checkout and cleanup assertions. The existing user instruction is to report findings outside the accepted criteria without starting another round, so this finding remains outside this change; no follow-up PR or issue is created.