Expand description
One function call outside a run, for a host’s unit tests.
call runs one call of one function through the path a run takes:
- the config compiles as it would in a workflow: the function is
registered, its config compiled under a
Preparenaming it, and the checks a workflow’s compile runs walk the config’s expressions; - the call gets a real
Ctxand overlay over the message given, and the layers given run around it, as a run’s layers do; - it settles as a run settles a call: an
Ok, whatever itsOutcome, applies the call’s writes to the message, anErrdrops them and theirChanges, and the records the call added are kept either way.
No recorder runs, so the message gains no audit entry, no
metadata.progress and no record of the call’s own Err: the Called
says what the call returned. No registry, compiler, definition or engine
is assembled by hand. config compiles a config alone, and
config_with compiles one with the host’s own ExprEngine.
Structs§
Enums§
- Write
- One write a call made, at the path it named: what
testing::Called::writeslists, in the order the call made them.
Functions§
- call
- One call of
f, with its config compiled frominputas a workflow would compile it;.awaitruns it. - config
- A config compiled alone, against
ExprEngine::default, with nothing prepared or checked beyond the config’s own compile.Errcarries every issue, at its path below the input. - config_
with - A config compiled alone, as
configcompiles it, againstexprs: the host’s engine, with its own operators and secrets.