Send testpoint notification. Works only if testpoint support is enabled (e.g. in components::TestsControl), otherwise does nothing. More...
#include <string>#include <userver/engine/task/task_processor_fwd.hpp>#include <userver/formats/json/value.hpp>#include <userver/testsuite/testpoint_control.hpp>#include <fmt/format.h>#include <atomic>#include <chrono>#include <userver/rcu/rcu.hpp>#include <userver/utils/async.hpp>
 Include dependency graph for testpoint.hpp:Go to the source code of this file.
Namespaces | |
| namespace | testsuite | 
| Testsuite integration.  | |
Macros | |
| #define | TESTPOINT_CALLBACK(name, json, callback) | 
| Send testpoint notification and receive data. Works only if testpoint support is enabled (e.g. in components::TestsControl), otherwise does nothing.   | |
| #define | TESTPOINT(name, json) | 
| Send testpoint notification. Works only if testpoint support is enabled (e.g. in components::TestsControl), otherwise does nothing.   | |
| #define | TESTPOINT_CALLBACK_NONCORO(name, json, task_processor, callback) | 
Same as TESTPOINT_CALLBACK but must be called outside of coroutine (e.g. from std::thread routine).   | |
| #define | TESTPOINT_NONCORO(name, json, task_processor) | 
Same as TESTPOINT but must be called outside of coroutine (e.g. from std::thread routine).   | |
Send testpoint notification. Works only if testpoint support is enabled (e.g. in components::TestsControl), otherwise does nothing.
Definition in file testpoint.hpp.
| #define TESTPOINT | ( | name, | |
| json | |||
| ) | 
Send testpoint notification. Works only if testpoint support is enabled (e.g. in components::TestsControl), otherwise does nothing.
Example usage:
Definition at line 86 of file testpoint.hpp.
| #define TESTPOINT_CALLBACK | ( | name, | |
| json, | |||
| callback | |||
| ) | 
Send testpoint notification and receive data. Works only if testpoint support is enabled (e.g. in components::TestsControl), otherwise does nothing.
Example usage:
Definition at line 63 of file testpoint.hpp.
| #define TESTPOINT_CALLBACK_NONCORO | ( | name, | |
| json, | |||
| task_processor, | |||
| callback | |||
| ) | 
Same as TESTPOINT_CALLBACK but must be called outside of coroutine (e.g. from std::thread routine). 
Definition at line 93 of file testpoint.hpp.
| #define TESTPOINT_NONCORO | ( | name, | |
| json, | |||
| task_processor | |||
| ) | 
Same as TESTPOINT but must be called outside of coroutine (e.g. from std::thread routine). 
Definition at line 105 of file testpoint.hpp.