Module bo_task

This module defines the bo_task behaviour.
Required callback functions: description/0, spec/0, timeout/0, tests/0, score/0.

Data Types

result()

result() = ok | {error, invalid | timeout} | {failures, [term()]}

solution()

solution() = fun((term()) -> term())

spec()

spec() = #{input := [binary()], output := binary()}

task()

task() = #{name := module(), desc := binary(), spec := spec(), score := pos_integer()}

test()

test() = fun((solution()) -> ok | {error, term()})

Function Index

describe/1
score/1
test/3
tester/2

Function Details

describe/1

describe(Task::module()) -> bo_task:task()

score/1

score(Task::module()) -> pos_integer()

test/3

test(Task::module(), Fun::solution(), Node::node()) -> result()

tester/2

tester(Task::module(), Fun::solution()) -> result()


Generated by EDoc, Oct 14 2016, 07:51:41.