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

Function test_container_properties

cpp/src/container_test.cpp:190–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190int test_container_properties() {
191 proton::connection_options opts;
192 std::map<proton::symbol, proton::value> props;
193 props["qpid.client_process"] = "test_process";
194 props["qpid.client_pid"] = 123;
195 opts.properties(props);
196 test_handler th("", opts);
197 proton::container(th).run();
198 ASSERT_EQUAL(th.peer_properties.size(), 2u);
199 ASSERT_EQUAL(th.peer_properties["qpid.client_process"], "test_process");
200 ASSERT_EQUAL(th.peer_properties["qpid.client_pid"], 123);
201 return 0;
202}
203
204int test_container_bad_address() {
205 // Listen on a bad address, check for leaks

Callers 1

mainFunction · 0.85

Calls 4

containerClass · 0.70
propertiesMethod · 0.45
runMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected