userver: testsuite::TestpointClientBase Class Reference
Loading...
Searching...
No Matches
testsuite::TestpointClientBase Class Referenceabstract

Base testpoint client. Used to report TESTPOINT executions to testsuite. More...

#include <userver/testsuite/testpoint_control.hpp>

+ Inheritance diagram for testsuite::TestpointClientBase:

Public Types

using Callback = std::function< void(const formats::json::Value &)>
 

Public Member Functions

virtual void Execute (const std::string &name, const formats::json::Value &json, const Callback &callback) const =0
 

Protected Member Functions

void Unregister () noexcept
 Must be called in destructors of derived classes.
 

Detailed Description

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 21 of file testpoint_control.hpp.

Member Typedef Documentation

◆ Callback

using testsuite::TestpointClientBase::Callback = std::function<void(const formats::json::Value&)>

Definition at line 23 of file testpoint_control.hpp.

Member Function Documentation

◆ Execute()

virtual void testsuite::TestpointClientBase::Execute ( const std::string &  name,
const formats::json::Value json,
const Callback &  callback 
) const
pure virtual
Parameters
namethe name of the testpoint
jsonthe request that will be passed to testsuite handler
callbackwill be invoked with the response if the testpoint has been handled on the testsuite side successfully

The documentation for this class was generated from the following file: