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

Method VerifyCredential

test/brpc_channel_unittest.cpp:102–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 }
101
102 int VerifyCredential(const std::string&,
103 const butil::EndPoint&,
104 brpc::AuthContext* ctx) const {
105 ctx->set_user(MOCK_CONTEXT);
106 ctx->set_group(MOCK_CONTEXT);
107 ctx->set_roles(MOCK_CONTEXT);
108 ctx->set_starter(MOCK_CONTEXT);
109 ctx->set_is_service(true);
110 return 0;
111 }
112 mutable butil::atomic<int32_t> count;
113};
114

Callers 1

VerifyMyRequestFunction · 0.45

Calls 5

set_userMethod · 0.80
set_groupMethod · 0.80
set_rolesMethod · 0.80
set_starterMethod · 0.80
set_is_serviceMethod · 0.80

Tested by

no test coverage detected