Foundry.TestScenario.LiveViewRegistry (foundry v0.1.6)

Copy Markdown

ETS-backed registry mapping LiveView channel PIDs to test process PIDs.

Used by AshTracer to forward action events from LiveView handlers back to the test process where they can be collected by RuntimeCapture.

Registry is lazy-initialized on first access and shared across all processes.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

lookup(lv_pid)

register(lv_pid, test_pid)

unregister(lv_pid)

unregister_by_test_pid(test_pid)