View Source Smokestack.Dsl.Template (smokestack v0.9.1)
Templates which assist in the generation of values.œ
Summary
Functions
Randomly select between a list of options.
Select a constant value
Cycle sequentially between a list of options.
Call a generator a number of times.
Generate sequential values.
Types
@type element() :: any()
Functions
@spec choose(Enumerable.t(element()), mapper()) :: Smokestack.Template.t()
Randomly select between a list of options.
@spec constant(element(), mapper()) :: Smokestack.Template.t()
Select a constant value
@spec cycle(Enumerable.t(element()), mapper()) :: Smokestack.Template.t()
Cycle sequentially between a list of options.
@spec n_times( pos_integer() | Range.t(pos_integer(), pos_integer()), Smokestack.Template.t(), mapper() ) :: Smokestack.Template.t()
Call a generator a number of times.
@spec sequence(mapper(), start: number(), step: number()) :: Smokestack.Template.t()
Generate sequential values.