11#include <source_location>
34 explicit hook(std::string_view name,
callback body, std::source_location location = std::source_location::current());
51 std::source_location location_;
Defines the callback type used by the test framework.
Registered setup or teardown hook.
Definition hook.hpp:25
hook(std::string_view name, callback body, std::source_location location=std::source_location::current())
Creates a hook.
void run(run_options const &options=run_options())
Runs the hook and wraps thrown exceptions in a hook error with source location information.
Unit test framework functions and types.
Definition test.hpp:15
std::move_only_function< void()> callback
Callable block used by tests, suites, and hooks.
Definition callback.hpp:20
Defines test execution options.
Configures the execution of registered tests.
Definition run_options.hpp:14