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

Function TEST

tensorflow/lite/testing/kernel_test/diff_analyzer_test.cc:28–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace {
27
28TEST(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

Callers

nothing calls this directly

Calls 3

ReadFilesMethod · 0.80
WriteReportMethod · 0.80
JoinPathFunction · 0.50

Tested by

no test coverage detected