Goby3 3.7.0
2026.11.12
Loading...
Searching...
No Matches
pubsub_test.h File Reference
#include <chrono>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <map>
#include <memory>
#include <regex>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <google/protobuf/dynamic_message.h>
#include <google/protobuf/io/tokenizer.h>
#include <google/protobuf/text_format.h>
#include <google/protobuf/util/json_util.h>
#include <boost/units/systems/si.hpp>
#include "dccl/dynamic_protobuf_manager.h"
#include "goby/exception.h"
#include "goby/middleware/coroner/groups.h"
#include "goby/middleware/log/dccl_log_plugin.h"
#include "goby/middleware/log/json_log_plugin.h"
#include "goby/middleware/log/log_entry.h"
#include "goby/middleware/log/protobuf_log_plugin.h"
#include "goby/middleware/marshalling/interface.h"
#include "goby/middleware/marshalling/json.h"
#include "goby/middleware/marshalling/protobuf.h"
#include "goby/middleware/protobuf/coroner.pb.h"
#include "goby/middleware/protobuf/pubsub_test.pb.h"
#include "goby/middleware/tool/publish_subscribe_tool.h"
#include "goby/middleware/transport/intervehicle.h"
#include "goby/util/debug_logger.h"

Go to the source code of this file.

Classes

struct  goby::middleware::tool::PubSubTestMessage
 A raw message received on an endpoint. More...
 
class  goby::middleware::tool::PubSubTestEndpoint
 Type-erased connection to one layer (interprocess or intermodule) of one transport. More...
 
class  goby::middleware::tool::PubSubTestPortalEndpoint< Portal, PortalConfig >
 PubSubTestEndpoint over any InterProcessPortalImplementation (interprocess or intermodule tag) More...
 
class  goby::middleware::tool::PubSubTestInterVehicleEndpoint< Portal, PortalConfig >
 PubSubTestEndpoint on the intervehicle layer: an InterVehicleForwarder over an interprocess portal, so traffic goes through that portal's gobyd and its intervehicle links, as an application's would. More...
 
class  goby::middleware::tool::PubSubTestValidator
 Checks a PubSubTest without connecting to anything: structure, endpoint references, regexes, and (for types whose descriptors are loaded) publish values, match messages and condition field paths. Every problem is collected rather than stopping at the first. More...
 
class  goby::middleware::tool::PubSubTestRunner
 Runs a PubSubTest over a set of endpoints on a single thread. More...
 

Namespaces

namespace  goby
 The global namespace for the Goby project.
 
namespace  goby::middleware
 Objects implementing the Goby nested middleware.
 
namespace  goby::middleware::tool
 
namespace  goby::middleware::tool::detail
 

Functions

void goby::middleware::tool::expand_runs (protobuf::PubSubTest &test, std::vector< protobuf::PubSubTestIssue > &issues)
 Replaces each run that has 'repeat' or 'for_each' with one plain run per pass.
 
void goby::middleware::tool::find_unresolved_variables (google::protobuf::Message &msg, const std::string &prefix, std::vector< protobuf::PubSubTestIssue > &issues, const std::set< std::string > &allowed={})
 Reports every ${NAME} in msg other than those in allowed (a "$${" escape is not a variable)
 
void goby::middleware::tool::unescape_variables (google::protobuf::Message &msg)
 Turns each "$${" escape into a literal "${".