MCPcopy Create free account
hub / github.com/apache/impala / GenerateYamlReader

Method GenerateYamlReader

be/src/kudu/util/yamlreader-test.cc:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41class YamlReaderTest : public KuduTest {
42public:
43 Status GenerateYamlReader(const string& content, unique_ptr<YamlReader>* result) {
44 string fname = GetTestPath("YamlReaderTest.json");
45 unique_ptr<WritableFile> writable_file;
46 RETURN_NOT_OK(WriteStringToFile(env_, content, fname));
47 result->reset(new YamlReader(fname));
48 return Status::OK();
49 }
50};
51
52TEST_F(YamlReaderTest, FileNotExist) {

Callers

nothing calls this directly

Calls 3

OKFunction · 0.85
WriteStringToFileFunction · 0.70
resetMethod · 0.65

Tested by

no test coverage detected