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

Function validateOptionValuePresent

fdbclient/NativeAPI.actor.cpp:471–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471void validateOptionValuePresent(Optional<StringRef> value) {
472 if (!value.present()) {
473 throw invalid_option_value();
474 }
475}
476
477void validateOptionValueNotPresent(Optional<StringRef> value) {
478 if (value.present() && value.get().size() > 0) {

Callers 3

extractIntOptionFunction · 0.70
setNetworkOptionFunction · 0.70
setOptionMethod · 0.70

Calls 1

presentMethod · 0.45

Tested by

no test coverage detected