Goby3 3.7.0
2026.11.12
Loading...
Searching...
No Matches
goby::middleware::tool::PubSubTestRunner Class Reference

Runs a PubSubTest over a set of endpoints on a single thread. More...

#include <goby/middleware/tool/pubsub_test.h>

Public Types

using Clock = PubSubTestEndpoint::Clock
 

Public Member Functions

 PubSubTestRunner (const protobuf::PubSubTest &test, std::vector< std::unique_ptr< PubSubTestEndpoint > > endpoints)
 
void set_cancel_check (std::function< bool()> cancelled)
 Called regularly while running; returning true aborts the test with an error.
 
protobuf::PubSubTestReport run ()
 

Static Public Member Functions

static std::string render_human (const protobuf::PubSubTestReport &report)
 
static std::string render_json (const google::protobuf::Message &report)
 

Detailed Description

Runs a PubSubTest over a set of endpoints on a single thread.

Definition at line 1214 of file pubsub_test.h.

Member Typedef Documentation

◆ Clock

Constructor & Destructor Documentation

◆ PubSubTestRunner()

goby::middleware::tool::PubSubTestRunner::PubSubTestRunner ( const protobuf::PubSubTest &  test,
std::vector< std::unique_ptr< PubSubTestEndpoint > >  endpoints 
)
inline

Definition at line 1219 of file pubsub_test.h.

Member Function Documentation

◆ render_human()

static std::string goby::middleware::tool::PubSubTestRunner::render_human ( const protobuf::PubSubTestReport &  report)
inlinestatic

Definition at line 1287 of file pubsub_test.h.

◆ render_json()

static std::string goby::middleware::tool::PubSubTestRunner::render_json ( const google::protobuf::Message &  report)
inlinestatic

Definition at line 1348 of file pubsub_test.h.

◆ run()

protobuf::PubSubTestReport goby::middleware::tool::PubSubTestRunner::run ( )
inline

Definition at line 1246 of file pubsub_test.h.

◆ set_cancel_check()

void goby::middleware::tool::PubSubTestRunner::set_cancel_check ( std::function< bool()>  cancelled)
inline

Called regularly while running; returning true aborts the test with an error.

Definition at line 1244 of file pubsub_test.h.


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