MCPcopy Create free account
hub / github.com/Snapchat/Valdi / success

Method success

valdi_core/src/valdi_core/cpp/Utils/Result.cpp:17–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15ResultBase::ResultBase(size_t index) noexcept : _index(index) {}
16
17bool ResultBase::success() const noexcept {
18 return _index == kValueIndex;
19}
20
21bool ResultBase::failure() const noexcept {
22 return _index == kErrorIndex;

Callers 15

startThreadMethod · 0.45
TEST_PFunction · 0.45
TEST_PMethod · 0.45
completeMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 15

TEST_PFunction · 0.36
TEST_PMethod · 0.36
completeMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36