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

Method HasFile

test/file_util_unittest.cc:233–235  ·  view source on GitHub ↗

Returns true if the enumerator found the file.

Source from the content-addressed store, hash-verified

231
232 // Returns true if the enumerator found the file.
233 bool HasFile(const FilePath& file) const {
234 return files_.find(file.value()) != files_.end();
235 }
236
237 int size() {
238 return static_cast<int>(files_.size());

Callers 1

TEST_FFunction · 0.80

Calls 3

findMethod · 0.45
valueMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected