8000 Cover the About icon and the display changes by dominion525 · Pull Request #15 · dominion525/blip · GitHub
[go: up one dir, main page]

Skip to content

Cover the About icon and the display changes - #15

Merged
dominion525 merged 1 commit into
mainfrom
cover-untested-paths
Sep 6, 2026
Merged

dominion525 merged 1 commit into
mainfrom
cover-untested-paths

Conversation

@dominion525
Copy link
Copy Markdown
Owner

Summary

  • Test makeAboutIcon through the bundle parameter it already takes for the purpose, which nothing was using: both drawings present, either one missing, and neither
  • Test what a display change does. The windows are kept when the displays did not move, rebuilt when the frames no longer line up, and the effect stays on screen when one arrives while it is visible

These were the two places where coverage could be raised without reaching for something the tests cannot touch. Blip.app goes from 83.99% to 86.93% (771/918 to 798/918), all of it in main.swift.

What remains uncovered is uncovered for a reason: creating a real event tap needs the Input Monitoring permission and a run loop, restart() would end the test runner, the About and Settings windows and System Settings would open, checkForUpdates() reaches the network, and MainAppLoginItem would register a real login item. The protocol it conforms to exists so tests use a fake instead.

🤖 Generated with Claude Code

- Test makeAboutIcon throu
8B8E
gh the bundle it already takes for the purpose: both drawings, either one missing, and neither
- Test what a display change does, both when the displays did not move and when the frames no longer line up, and that the effect stays on screen through one

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dominion525
dominion525 merged commit bcbe98b into main Sep 6, 2026
1 check passed
@dominion525
dominion525 deleted the cover-untested-paths branch September 6, 2026 16:24
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

0