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

Function CheckErrorText

test/brpc_builtin_service_unittest.cpp:129–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void CheckErrorText(const brpc::Controller& cntl, const char* error) {
130 std::size_t pos = cntl.ErrorText().find(error);
131 ASSERT_TRUE(pos != std::string::npos) << "error=" << error;
132}
133
134void CheckFieldInContent(const brpc::Controller& cntl,
135 const char* name, int32_t expect) {

Callers 2

TestBadMethodMethod · 0.85
TEST_FFunction · 0.85

Calls 2

ErrorTextMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected