MCPcopy Create free account
hub / github.com/apple/foundationdb / decodeFailureTest

Function decodeFailureTest

fdbclient/ConfigKnobs.cpp:156–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154namespace {
155
156void decodeFailureTest(KeyRef key) {
157 try {
158 ConfigKeyRef::decodeKey(key);
159 } catch (Error& e) {
160 ASSERT_EQ(e.code(), error_code_invalid_config_db_key);
161 return;
162 }
163 ASSERT(false);
164}
165
166} // namespace
167

Callers 1

ConfigKnobs.cppFile · 0.85

Calls 2

decodeKeyFunction · 0.85
codeMethod · 0.45

Tested by

no test coverage detected