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

Method NewWritableFile

src/leveldb/util/testutil.h:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 ~ErrorEnv() override { delete target(); }
41
42 Status NewWritableFile(const std::string& fname,
43 WritableFile** result) override {
44 if (writable_file_error_) {
45 ++num_writable_file_errors_;
46 *result = nullptr;
47 return Status::IOError(fname, "fake error");
48 }
49 return target()->NewWritableFile(fname, result);
50 }
51
52 Status NewAppendableFile(const std::string& fname,
53 WritableFile** result) override {

Callers 5

NewWritableFileFunction · 0.45
HeapProfileMethod · 0.45
DoWriteStringToFileFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 2

IOErrorFunction · 0.85
targetFunction · 0.85

Tested by

no test coverage detected