| 70 | }; |
| 71 | |
| 72 | TEST_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 | |
| 86 | TEST_F(UtilsTest, ReadGraphDefFromFile_Text) { |
| 87 | GraphDef result; |
nothing calls this directly
no test coverage detected