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:
okfor a key’s first reply, thenalready answered, withsametrue when the answer is the same value as the first. It checks no types. - Sent
- One reply
replysent while a capture was alive.
Functions§
- replies
- Starts capturing replies; they reach no host until it is dropped.