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

Method VerifyCredential

test/brpc_http_rpc_protocol_unittest.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 int VerifyCredential(const std::string& auth_str,
100 const butil::EndPoint&,
101 brpc::AuthContext* ctx) const {
102 EXPECT_EQ(MOCK_CREDENTIAL, auth_str);
103 ctx->set_user(MOCK_USER);
104 return 0;
105 }
106};
107
108class MyEchoService : public ::test::EchoService {

Callers

nothing calls this directly

Calls 1

set_userMethod · 0.80

Tested by

no test coverage detected