Porterage v0.1.0 Porterage.Tester behaviour View Source

Tests if data should be fetched and delivered after the last scheduler tick.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callbacks

Optional state initialization.

Execute a run of the tester module.

Link to this section Types

Link to this type

test_result()

View Source
test_result() :: {state(), boolean()}

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this section Callbacks

Link to this callback

init(opts)

View Source (optional)
init(opts :: map()) :: state()

Optional state initialization.

Link to this callback

test(state)

View Source
test(state :: any()) :: test_result()

Execute a run of the tester module.