Skip to main content

Module testing

Module testing 

Source
Expand description

Testing Tools and reply natively, without a host.

A Tool function is an ordinary function: a test calls it with Context::for_test and checks what it returns, a Hold included. replies captures the replies reply sends while it is alive, so a test can drive a held call and the webhook that answers it in one process.

Structs§

Replies
The replies sent while it is alive, which reach no host. Each is acked as a host that holds every call open would ack it: ok for a key’s first reply, then already answered, with same true when the answer is the same value as the first. It checks no types.
Sent
One reply reply sent while a capture was alive.

Functions§

replies
Starts capturing replies; they reach no host until it is dropped.