Skip to content

Conversation

@IsmaelEzequiel
Copy link
Contributor

Summary

  • Add guard support to assert_push, assert_reply, and assert_broadcast macros
  • Guards are extracted from the payload pattern and applied to the outer assert_receive

Closes #5791

Examples

assert_push "event", %{"count" => c} when c > 0
assert_reply ref, :ok, %{"resp" => resp} when is_map(resp)
assert_broadcast "event", %{"data" => d} when is_binary(d)

@IsmaelEzequiel
Copy link
Contributor Author

@josevalim ping

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support guards in assert_push

2 participants