Skip to content

Require InlinePatch.TestName - #756

Merged
SimonCropp merged 1 commit into
mainfrom
inline-test-name
Aug 14, 2026
Merged

Require InlinePatch.TestName#756
SimonCropp merged 1 commit into
mainfrom
inline-test-name

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

The viewer labels and groups queue entries by TestName and falls back to the call site without one, so a producer that never set it was indistinguishable from a test with no name. Verify was that producer, and it went unnoticed until a queue of bare file:line rows made someone ask why.

Required rather than non-null. A patch that never reaches a queue -- a Remove, or an apply straight through InlineApplier -- has no reviewable identity, and now says so with an explicit null instead of by omission.

InlinePatchFile.TryParse was the only production construction site and already used an object initializer, so nothing outside tests changed. Test files where no patch is ever queued state the null once in a local helper rather than at every call site; helpers that already threaded framework gained a testName beside it.

The viewer labels and groups queue entries by TestName and falls back to the
call site without one, so a producer that never set it was indistinguishable
from a test with no name. Verify was that producer, and it went unnoticed until
a queue of bare file:line rows made someone ask why.

Required rather than non-null. A patch that never reaches a queue -- a Remove,
or an apply straight through InlineApplier -- has no reviewable identity, and
now says so with an explicit null instead of by omission.

InlinePatchFile.TryParse was the only production construction site and already
used an object initializer, so nothing outside tests changed. Test files where
no patch is ever queued state the null once in a local helper rather than at
every call site; helpers that already threaded framework gained a testName
beside it.
@SimonCropp
SimonCropp merged commit 7efe788 into main Aug 14, 2026
7 checks passed
@SimonCropp
SimonCropp deleted the inline-test-name branch August 14, 2026 08:11
@github-actions
github-actions Bot restored the inline-test-name branch August 14, 2026 08:11
@SimonCropp
SimonCropp deleted the inline-test-name branch August 21, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant