Scientist v0.1.0 Scientist

A library for carefully refactoring critical paths in your elixir application.

Summary

Macros

Adds a before_run function to the experiment created in science/3

Adds a candidate block to the experiment created in science/3

Adds a clean function to the experiment created in science/3

Adds a compare block to the experiment created in science/3

Adds a control block to the experiment created in science/3

Adds an ignore block to the experiment created in science/3

Adds an ignore block to the experiment created in science/3

Adds a run_if function to the experiment created in science/3

Creates a new experiment with name and opts. The block will behave the same as the control block given

Macros

before_run(list)

Adds a before_run function to the experiment created in science/3.

candidate(name \\ "candidate", list)

Adds a candidate block to the experiment created in science/3.

clean(x, list)

Adds a clean function to the experiment created in science/3.

The observed values will be bound to the declared var.

compare(x, y, list)

Adds a compare block to the experiment created in science/3.

The control and candidate values will be bound to the declared vars.

control(list)

Adds a control block to the experiment created in science/3.

ignore(list)

Adds an ignore block to the experiment created in science/3.

ignore(x, y, list)

Adds an ignore block to the experiment created in science/3.

The control and candidate values will be bound to the declared vars.

run_if(list)

Adds a run_if function to the experiment created in science/3.

science(name, opts \\ [], list)

Creates a new experiment with name and opts. The block will behave the same as the control block given.