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

Function TEST_F

tensorflow/core/grappler/inputs/utils_test.cc:72–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70};
71
72TEST_F(UtilsTest, FilesExist) {
73 EXPECT_FALSE(FilesExist(std::vector<string>{{non_existent_file_}}));
74 EXPECT_FALSE(
75 FilesExist(std::vector<string>{{non_existent_file_}, {actual_file_}}));
76 EXPECT_TRUE(FilesExist(std::vector<string>{{actual_file_}}));
77
78 std::vector<Status> status;
79 EXPECT_FALSE(FilesExist(
80 std::vector<string>{{non_existent_file_}, {actual_file_}}, &status));
81 EXPECT_EQ(status.size(), 2);
82 EXPECT_FALSE(status[0].ok());
83 EXPECT_TRUE(status[1].ok());
84}
85
86TEST_F(UtilsTest, ReadGraphDefFromFile_Text) {
87 GraphDef result;

Callers

nothing calls this directly

Calls 6

FilesExistFunction · 0.85
ReadGraphDefFromFileFunction · 0.85
ReadMetaGraphDefFromFileFunction · 0.85
sizeMethod · 0.45
okMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected