#include <userver/testsuite/testpoint_control.hpp>
Testpoint control interface for testsuite.
All methods are coro-safe. All testpoints are disabled by default. Only 1 TestpointControl instance may exist globally at a time.
Definition at line 45 of file testpoint_control.hpp.
Public Member Functions | |
void | SetEnabledNames (std::unordered_set< std::string > names) |
Enable only the selected testpoints. | |
void | SetAllEnabled () |
Enable all defined testpoints. | |
void | SetClient (TestpointClientBase &client) |
Makes a testpoint client globally accessible from testpoints. It will unregister itself on destruction. | |
void testsuite::TestpointControl::SetAllEnabled | ( | ) |
Enable all defined testpoints.
Testpoints, for which there is no registered handler on the testsuite side, will still be skipped, at the cost of an extra request.
void testsuite::TestpointControl::SetClient | ( | TestpointClientBase & | client | ) |
Makes a testpoint client globally accessible from testpoints. It will unregister itself on destruction.