Skip to content

namir-ui: the intent round-trip test bypasses the frame path it claims to cover #102

Description

@ErwanLegrand

crates/namir-ui/src/app.rs:396-414

dispatched_intents_from_a_frame_reach_the_host claims in its doc comment to verify a SetParam "round-trips to the host via NamirUi::frame's real UiHost::dispatch path", but the body calls namir_ui.host.dispatch(...) directly -- no frame is run, render is never entered, and the assertion only re-tests RecordingHost's Vec::push. The one glue path it purports to cover (render -> collect intents -> dispatch) is untested.

Fix: drive headless_frame with a click on a real control and assert the intent landed in host.dispatched.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions