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

Method VerifyCredential

test/brpc_nova_pbrpc_protocol_unittest.cpp:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 int VerifyCredential(const std::string& auth_str,
56 const butil::EndPoint&,
57 brpc::AuthContext* ctx) const {
58 EXPECT_EQ(MOCK_CREDENTIAL, auth_str);
59 ctx->set_user(MOCK_USER);
60 return 0;
61 }
62};
63
64class MyEchoService : public ::test::EchoService {

Callers

nothing calls this directly

Calls 1

set_userMethod · 0.80

Tested by

no test coverage detected