47TEST(ParseChecksumFileContentTest, Lines) {
48 const auto OneLine = std::string(67,
' ');
51 ASSERT_FALSE(Content.empty());
52 ASSERT_EQ(Content.size(), 1);
55 ASSERT_FALSE(Content.empty());
56 ASSERT_EQ(Content.size(), 2);
59 OneLine + std::string(
"\n") + OneLine + std::string(
"\n"), {});
60 ASSERT_FALSE(Content.empty());
61 ASSERT_EQ(Content.size(), 2);
64TEST(ParseChecksumFileContentTest, TheTest) {
65 const std::string testLine =
66 "0000000000000000000000000000000000000000000000000000000000000000 file";
69 ASSERT_FALSE(Content.empty());
70 ASSERT_EQ(Content.size(), 1);
71 ASSERT_EQ(Content.front().RelFileName,
"file");
72 ASSERT_EQ(Content.front().FullFileName,
"/file");
75 ASSERT_FALSE(Content.empty());
76 ASSERT_EQ(Content.size(), 1);
77 ASSERT_EQ(Content.front().RelFileName,
"file");
78 ASSERT_EQ(Content.front().FullFileName,
"dir/file");