Testpoint control interface for testsuite.
More...
#include <userver/testsuite/testpoint_control.hpp>
|
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.
|
|
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.
◆ SetAllEnabled()
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.
◆ SetClient()
Makes a testpoint client globally accessible from testpoints. It will unregister itself on destruction.
- Note
- Only 1 client may be registered at a time.
The documentation for this class was generated from the following file: