MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / TEST

Function TEST

test/diff/lcs_test.cpp:62–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62TEST(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
76TEST(LCSTest, EmptySrc) {
77 Sequence src, dst = {1, 2, 3};

Callers

nothing calls this directly

Calls 3

VerifyMatchFunction · 0.85
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected