• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jzombie / term-wm / 28688331903
75%

Build:
DEFAULT BRANCH: main
Ran 03 Jul 2026 11:54PM UTC
Jobs 1
Files 74
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Jul 2026 11:50PM UTC coverage: 68.424% (+0.2%) from 68.194%
28688331903

push

github

web-flow
feat(core): Formalize app window state machine (#81)

* feat(core): formalize window lifecycle as a state machine with
event-driven teardown

Replace ad-hoc `minimized: bool` with a canonical `WindowState` enum
(Realized/Mapped/Unmapped/Iconic/Shaded) and a single
`transition_window()`
method on WindowManager that atomically mutates state and applies all
z-order/layout/focus side-effects without holding borrows across calls.

Add `AppExited(WindowKey)` variant to `UnifiedEvent` for event-driven
async teardown. Replace `Arc<dyn Fn()>` wakeup callbacks with a
`PtyStatus` enum (Wakeup/Exited) and a `Box<dyn Fn(PtyStatus)>` status
callback, keeping the pty-engine crate agnostic of UI types. The
callback
is shared between reader thread and main thread via `Arc<Mutex<>>` so
it can be set after the reader thread starts.

Remove `has_exited()` polling from `enumerate_windows()` — windows now
close via the event-driven `AppExited` path. Fix `EventSource` trait
dispatch for `take_exited_windows()` so generic runner code actually
receives accumulated exit keys.

Add 10 tests covering all 8 legal state transitions and their
side-effects,
illegal transitions, close_window variants, and shade/unshade.

361 of 457 new or added lines in 11 files covered. (78.99%)

8 existing lines in 3 files now uncovered.

13422 of 19616 relevant lines covered (68.42%)

143.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
0.0
0.0% src/main.rs
20
51.01
1.34% crates/term-wm-core/src/io/unified_event_source.rs
18
60.0
-1.16% crates/term-wm-core/src/window/window_manager/layout.rs
18
79.93
1.98% crates/term-wm-core/src/window/window_manager/mod.rs
10
78.2
-0.74% crates/term-wm-pty-engine/src/pty.rs
3
0.0
0.0% crates/term-wm-pty-engine/src/pane.rs
2
48.91
-0.05% crates/term-wm-core/src/runner.rs
2
47.74
-4.26% crates/term-wm-core/src/window/window_manager/chrome.rs
2
64.33
0.0% crates/term-wm-ui-components/src/terminal.rs

Coverage Regressions

Lines Coverage ∆ File
6
86.88
-2.71% crates/term-wm-core/src/reaper.rs
1
0.0
0.0% crates/term-wm-pty-engine/src/pane.rs
1
64.33
0.0% crates/term-wm-ui-components/src/terminal.rs
Jobs
ID Job ID Ran Files Coverage
1 28688331903.1 03 Jul 2026 11:54PM UTC 74
68.42
GitHub Action Run
Source Files on build 28688331903
  • Tree
  • List 74
  • Changed 14
  • Source Changed 12
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28688331903
  • 0bf63d7b on github
  • Prev Build on main (#28682932637)
  • Next Build on main (#28691133374)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc