MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/core/util/events_writer_test.cc:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111TEST(EventWriter, WriteFlush) {
112 string file_prefix = GetDirName("/writeflush_test");
113 EventsWriter writer(file_prefix);
114 WriteFile(&writer);
115 TF_EXPECT_OK(writer.Flush());
116 string filename = writer.FileName();
117 VerifyFile(filename);
118}
119
120TEST(EventWriter, WriteClose) {
121 string file_prefix = GetDirName("/writeclose_test");

Callers

nothing calls this directly

Calls 13

GetDirNameFunction · 0.85
VerifyFileFunction · 0.85
FileNameMethod · 0.80
WriteFileFunction · 0.70
envFunction · 0.70
FlushMethod · 0.45
CloseMethod · 0.45
FileExistsMethod · 0.45
DeleteFileMethod · 0.45
codeMethod · 0.45
okMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected