userver: testsuite::TestpointControl Class Reference
Loading...
Searching...
No Matches
testsuite::TestpointControl Class Referencefinal

#include <userver/testsuite/testpoint_control.hpp>

Detailed Description

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.
 

Member Function Documentation

◆ 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()

void testsuite::TestpointControl::SetClient ( TestpointClientBase & client)

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: