#include <userver/testsuite/testpoint_control.hpp>
Base testpoint client. Used to report TESTPOINT executions to testsuite.
Do not use directly unless you are writing a component for handling testpoints.
Definition at line 23 of file testpoint_control.hpp.
Public Types | |
using | Callback = utils::function_ref<void(const formats::json::Value&)> |
Public Member Functions | |
virtual void | Execute (std::string_view name, const formats::json::Value &json, Callback callback) const =0 |
Protected Member Functions | |
void | Unregister () noexcept |
Must be called in destructors of derived classes. | |
using testsuite::TestpointClientBase::Callback = utils::function_ref<void(const formats::json::Value&)> |
Definition at line 25 of file testpoint_control.hpp.
|
pure virtual |
name | the name of the testpoint |
json | the request that will be passed to testsuite handler |
callback | will be invoked with the response if the testpoint has been handled on the testsuite side successfully |