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

Function test_user_context

cpp/src/context_test.cpp:145–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143};
144
145int test_user_context() {
146
147 std::string recv_address("127.0.0.1:0/test");
148 test_server recv(recv_address);
149 proton::container c(recv);
150 std::thread thread_recv([&c]() -> void { c.run(); });
151
152 // wait until listener is ready
153 std::unique_lock<std::mutex> lk(m);
154 cv.wait(lk, [] { return listener_ready; });
155
156 std::string send_address =
157 "127.0.0.1:" + std::to_string(listener_port) + "/test";
158 test_client send(send_address);
159 proton::container(send).run();
160 thread_recv.join();
161
162 return 0;
163}
164
165int main(int argc, char **argv) {
166 int failed = 0;

Callers 1

mainFunction · 0.85

Calls 5

joinMethod · 0.80
to_stringFunction · 0.70
containerClass · 0.70
waitMethod · 0.65
runMethod · 0.45

Tested by

no test coverage detected