Cizen v0.14.1 Cizen.Test View Source

Conveniences for testing Cizen.

Link to this section Summary

Functions

Asserts that the block is finished in the given timeout

Asserts that the effect is performed in the given timeout

Ensures the given saga is finished

Link to this section Functions

Link to this macro assert_handle(timeout \\ 1000, func) View Source (macro)

Asserts that the block is finished in the given timeout.

The default value of the timeout is 1000.

Link to this macro assert_perform(timeout \\ 100, id, effect) View Source (macro)

Asserts that the effect is performed in the given timeout.

The default value of the timeout is 100.

Link to this function ensure_finished(id) View Source
ensure_finished(Cizen.SagaID.t()) :: term()

Ensures the given saga is finished.