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

Method SetMockFunc

test/brpc_channel_unittest.cpp:209–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 const ::test::EchoRequest*, ::test::EchoResponse*,
208 google::protobuf::Closure*);
209 void SetMockFunc(std::function<MockFuncType>&& mockfunc) {
210 mockfunc_ = std::move(mockfunc);
211 }
212
213private:
214 std::function<MockFuncType> mockfunc_;

Calls 1

moveFunction · 0.50

Tested by

no test coverage detected