pub fn setup_integration_testing(
input: TestingInput,
output: TestingOutput,
options: TestingOptions,
)Expand description
Sets up an integration testing environment for the current thread.
This overrides the default behavior of
DoraNode::init_from_env to initialize
a testing node with the given input, output, and options.
ยงImplementation Details
This function sets up thread-local state that is read by the DoraNode::init_from_env function.
Thus, it only affects the current thread.
Calls to DoraNode::init_from_env will consume the testing environment set up by this function
and reset the thread-local state afterwards. Thus, subsequent calls to DoraNode::init_from_env
will not run in testing mode unless this function is called again.