Raxol.Test.EventAssertions (Raxol v0.5.0)

View Source

Event-based assertion helpers for ExUnit tests. Provides wrappers for assert_receive and refute_receive for event-driven code.

Summary

Functions

Asserts that a message matching the given pattern is received within the timeout.

Refutes that a message matching the given pattern is received within the timeout.

Functions

assert_event_received(pattern, timeout \\ 1000)

(macro)

Asserts that a message matching the given pattern is received within the timeout.

refute_event_received(pattern, timeout \\ 1000)

(macro)

Refutes that a message matching the given pattern is received within the timeout.