Exaop v0.1.0 Exaop.Checker behaviour View Source

This module defines the behaviour for external Exaop checkers.

Link to this section Summary

Callbacks

Invoked to handle the corresponding check step.

Link to this section Callbacks

Link to this callback

check(params, args, acc)

View Source

Specs

check(params(), args(), acc()) :: :ok | {:error, term()}

Invoked to handle the corresponding check step.

Returning :ok continues the reduction with the current params and acc passed to the next Exaop step.

Returning a two-element tuple {:error, reason} halts the reduction and the built function __inject__/3 returns the error tuple.

When the final reduction step is check and it returns :ok, the built function __inject__/3 returns the last acc accumulator.