Skip to content

test(webkit/window): finish the tautology sweep PR #46 left blocked - #50

Merged
Snider merged 1 commit into
mainfrom
test/window-tautology-residue
Aug 8, 2026
Merged

test(webkit/window): finish the tautology sweep PR #46 left blocked#50
Snider merged 1 commit into
mainfrom
test/window-tautology-residue

Conversation

@Snider

@Snider Snider commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

The four shells #46 couldn't touch while #44 was in flight. Adjudicated per case rather than swept — the two files needed opposite treatments.

register_test.go — genuine fake

All three tests asserted that the string "Register:good" contains "good". They never named Register.

Replaced with a real Good/Bad/Ugly triplet that actually calls it:

  • Good — the returned constructor yields an OK Result carrying a *Service wired to the given platform, with manager and spec registry initialised.
  • Bad — a nil platform still constructs rather than panicking. Registration happens during Core wiring, long before any window opens; failing there would take down start-up for a fault that only matters at first use.
  • Ugly — the constructor is reusable and each call must produce an independent service. A shared specs map would let two Cores overwrite each other's window registrations.

window_test.go — mislabelled but real

These tests do call WithName / WithTitle / WithURL and assert properly. The ax7Variant lines were dead weight prepended to working bodies. Removed those two lines per test — 116 in total — leaving every assertion byte-identical.

Receipts

coverage 68.3% before, 68.3% after — nothing real was removed
Register 100.0% (already covered by service_screen_test.go's real use; the deleted shells contributed nothing)
go test -race -count=2 clean
vet + gofmt clean

🤖 Generated with Claude Code
Co-Authored-By: Virgil virgil@lethean.io

The four shells #46 could not touch while PR #44 was in flight, now
adjudicated per case rather than swept.

register_test.go — genuine fake. All three tests asserted that the
string "Register:good" contains "good" and never named Register at all.
Replaced with a real Good/Bad/Ugly triplet that calls it: the returned
constructor yields an OK Result carrying a *Service wired to the given
platform with manager and spec registry initialised (Good); a nil
platform still constructs rather than panicking during Core wiring, long
before any window opens (Bad); and the constructor is reusable, each call
producing an INDEPENDENT service — a shared specs map would let two Cores
overwrite each other's window registrations (Ugly).

window_test.go — mislabelled but real. These tests DO call WithName /
WithTitle / WithURL and assert properly; the ax7Variant lines were dead
weight prepended to working bodies. Removed those two lines per test,
116 in total, leaving every assertion byte-identical.

Receipts:
  coverage  68.3% before, 68.3% after — nothing real was removed
  Register  100.0% (was already covered by service_screen_test.go's
            real use; the deleted shells contributed nothing)
  go test -race -count=2  clean
  vet + gofmt clean

Co-Authored-By: Virgil <virgil@lethean.io>
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Snider, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 17 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0c53c8aa-ea17-44b1-9a5f-ffe575e0aeae

📥 Commits

Reviewing files that changed from the base of the PR and between 9415ed2 and a65379d.

📒 Files selected for processing (2)
  • go/display/webkit/pkg/window/register_test.go
  • go/display/webkit/pkg/window/window_test.go

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Snider
Snider merged commit fa48ab3 into main Aug 8, 2026
2 checks passed
@Snider
Snider deleted the test/window-tautology-residue branch August 8, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant