From 367d2a3e6511d55a476aaae5fe7ccda6efd38a98 Mon Sep 17 00:00:00 2001 From: David Mann Date: Wed, 18 Nov 2026 18:38:41 +0100 Subject: [PATCH] automation tests: name the polling fixture's pass log (clippy type_complexity) Co-Authored-By: Claude Opus 5.5 --- crates/automation/tests/it/synthetic.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/automation/tests/it/synthetic.rs b/crates/automation/tests/it/synthetic.rs index 62b1175e8..9452879ae 100644 --- a/crates/automation/tests/it/synthetic.rs +++ b/crates/automation/tests/it/synthetic.rs @@ -179,6 +179,9 @@ fn injected_caps_lock_holds_until_cleared() { assert_eq!(rig.host().injected_caps_lock(), None); } +/// Per pass: whether the waiter had its reply by the pass's end, and the pointer position the pass saw. +type PassLog = Rc)>>>; + /// A fixture whose UI polls `channel` at the end of each pass, as an application does after its UI, with `discard` /// asking egui to run the pass again on the passes it is true for; `answered` records, per pass, whether the waiter /// had its reply by the pass's end and the pointer position the pass saw. @@ -186,7 +189,7 @@ fn polling_fixture( channel: Rc>, reply: Rc>, discard: impl Fn(usize) -> bool + 'static, -) -> (Fixture, Rc)>>>) { +) -> (Fixture, PassLog) { let answered = Rc::new(RefCell::new(Vec::new())); let seen = answered.clone(); let fx = Fixture::new(move |ui| {