MCPcopy Create free account
hub / github.com/ElementsProject/elements / NewAppendableFile

Method NewAppendableFile

src/leveldb/util/testutil.h:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 Status NewAppendableFile(const std::string& fname,
53 WritableFile** result) override {
54 if (writable_file_error_) {
55 ++num_writable_file_errors_;
56 *result = nullptr;
57 return Status::IOError(fname, "fake error");
58 }
59 return target()->NewAppendableFile(fname, result);
60 }
61};
62
63} // namespace test

Callers

nothing calls this directly

Calls 2

IOErrorFunction · 0.85
targetFunction · 0.85

Tested by

no test coverage detected