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

Method VerifyCredential

test/brpc_sofa_pbrpc_protocol_unittest.cpp:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 int VerifyCredential(const std::string& auth_str,
63 const butil::EndPoint&,
64 brpc::AuthContext* ctx) const {
65 EXPECT_EQ(MOCK_CREDENTIAL, auth_str);
66 ctx->set_user(MOCK_USER);
67 return 0;
68 }
69};
70
71class MyEchoService : public ::test::EchoService {

Callers

nothing calls this directly

Calls 1

set_userMethod · 0.80

Tested by

no test coverage detected