MCPcopy Create free account
hub / github.com/apache/brpc / SendMultipleRPC

Function SendMultipleRPC

test/brpc_ssl_unittest.cpp:96–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void SendMultipleRPC(brpc::Channel* channel, int count) {
97 for (int i = 0; i < count; ++i) {
98 brpc::Controller cntl;
99 test::EchoRequest req;
100 test::EchoResponse res;
101 req.set_message(EXP_REQUEST);
102 test::EchoService_Stub stub(channel);
103 stub.Echo(&cntl, &req, &res, NULL);
104
105 EXPECT_EQ(EXP_RESPONSE, res.message()) << cntl.ErrorText();
106 }
107}
108
109TEST_F(SSLTest, sanity) {
110 // Test RPC based on SSL + brpc protocol

Callers 1

CheckCertFunction · 0.70

Calls 3

ErrorTextMethod · 0.80
EchoMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected