| 60 | } |
| 61 | |
| 62 | TEST(LCSTest, EmptySequences) { |
| 63 | Sequence src, dst; |
| 64 | |
| 65 | DiffMatch src_match, dst_match; |
| 66 | |
| 67 | LCS lcs(src, dst); |
| 68 | size_t match_count = |
| 69 | lcs.Get<int>([](int s, int d) { return s == d; }, &src_match, &dst_match); |
| 70 | |
| 71 | EXPECT_EQ(match_count, 0u); |
| 72 | EXPECT_TRUE(src_match.empty()); |
| 73 | EXPECT_TRUE(dst_match.empty()); |
| 74 | } |
| 75 | |
| 76 | TEST(LCSTest, EmptySrc) { |
| 77 | Sequence src, dst = {1, 2, 3}; |
nothing calls this directly
no test coverage detected