| 26 | namespace { |
| 27 | |
| 28 | TEST(DiffAnalyzerTest, ZeroDiff) { |
| 29 | DiffAnalyzer diff_analyzer; |
| 30 | string filename = "tensorflow/lite/testdata/test_input.csv"; |
| 31 | ASSERT_EQ(diff_analyzer.ReadFiles(filename, filename), kTfLiteOk); |
| 32 | |
| 33 | string output_file = |
| 34 | tensorflow::io::JoinPath(FLAGS_test_tmpdir + "diff_report.csv"); |
| 35 | ASSERT_EQ(diff_analyzer.WriteReport(output_file), kTfLiteOk); |
| 36 | |
| 37 | std::string content; |
| 38 | std::ifstream file(output_file); |
| 39 | std::getline(file, content); |
| 40 | std::getline(file, content); |
| 41 | ASSERT_EQ(content, "0,0"); |
| 42 | } |
| 43 | |
| 44 | } // namespace |
| 45 |
nothing calls this directly
no test coverage detected