Skip to content

add empty file test cases to utils_test.cc#61841

Merged
copybara-service[bot] merged 2 commits intotensorflow:masterfrom
redwrasse:redwrasse/tflite-add-empty-tests
Jan 12, 2024
Merged

add empty file test cases to utils_test.cc#61841
copybara-service[bot] merged 2 commits intotensorflow:masterfrom
redwrasse:redwrasse/tflite-add-empty-tests

Conversation

@redwrasse
Copy link
Copy Markdown
Contributor

@redwrasse redwrasse commented Sep 12, 2023

Add a couple more test cases of the empty file (empty.txt) to utils_test.cc:

  • reading empty file does not return nullptr
  • reading empty file results in 0 lines written to vector

@google-ml-butler google-ml-butler bot added the size:S CL Change Size: Small label Sep 12, 2023
@gbaned gbaned added the comp:lite TF Lite related issues label Sep 12, 2023
@gbaned gbaned requested a review from terryheo September 12, 2023 04:08
@google-ml-butler google-ml-butler bot added the awaiting review Pull request awaiting review label Sep 12, 2023
@gbaned
Copy link
Copy Markdown
Contributor

gbaned commented Sep 25, 2023

Hi @terryheo Can you please review this PR ? Thank you!

1 similar comment
@gbaned
Copy link
Copy Markdown
Contributor

gbaned commented Nov 3, 2023

Hi @terryheo Can you please review this PR ? Thank you!

@gbaned gbaned requested a review from rascani December 15, 2023 06:49
@gbaned
Copy link
Copy Markdown
Contributor

gbaned commented Dec 29, 2023

Hi @rascani Can you please review this PR ? Thank you!

std::string empty_path(kEmptyFilePath);
std::vector<std::string> lines;
EXPECT_TRUE(ReadFileLines(file_path, &lines));
std::vector<std::string> emptyLines;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emptyLines should be empty_lines

@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Jan 11, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Jan 11, 2024
@copybara-service copybara-service bot merged commit 2df0949 into tensorflow:master Jan 12, 2024
@redwrasse redwrasse deleted the redwrasse/tflite-add-empty-tests branch January 12, 2024 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review Pull request awaiting review comp:lite TF Lite related issues ready to pull PR ready for merge process size:S CL Change Size: Small

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

4 participants