MCPcopy Create free account
hub / github.com/apache/qpid-proton / test_container_no_vhost

Function test_container_no_vhost

cpp/src/container_test.cpp:157–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157int test_container_no_vhost() {
158 // explicitly setting an empty virtual-host will cause the Open
159 // performative to be sent without a hostname field present.
160 // Sadly whether or not a 'hostname' field was received cannot be
161 // determined from here, so just exercise the code
162 proton::connection_options opts;
163 opts.virtual_host("");
164 test_handler th("127.0.0.1", opts);
165 proton::container(th).run();
166 ASSERT_EQUAL(th.peer_vhost, "");
167 return 0;
168}
169
170std::vector<proton::symbol> make_caps(const std::string& s) {
171 std::vector<proton::symbol> caps;

Callers 1

mainFunction · 0.85

Calls 3

containerClass · 0.70
virtual_hostMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected