MCPcopy Create free account
hub / github.com/WinMerge/winmerge / TEST_F

Function TEST_F

Testing/GoogleTest/StringDiffs/stringdiffs_test_adds.cpp:59–72  ·  view source on GitHub ↗

Char added to begin

Source from the content-addressed store, hash-verified

57
58 // Char added to begin
59 TEST_F(StringDiffsAddsTest, AddBeginFirst1)
60 {
61 std::vector<strdiff::wdiff> diffs = strdiff::ComputeWordDiffs(_T("abcdefgh"), _T("1abcdefgh"),
62 false, strdiff::EOL_STRICT, 0, false, 0, false);
63 EXPECT_EQ(1, diffs.size());
64 if (diffs.size() >= 1)
65 {
66 strdiff::wdiff *pDiff = &diffs[0];
67 EXPECT_EQ(0, pDiff->begin[0]);
68 EXPECT_EQ(0, pDiff->begin[1]);
69 EXPECT_EQ(7, pDiff->end[0]);
70 EXPECT_EQ(8, pDiff->end[1]);
71 }
72 }
73
74 // Char added to begin
75 TEST_F(StringDiffsAddsTest, AddBeginFirst2)

Callers

nothing calls this directly

Calls 3

ComputeWordDiffsFunction · 0.85
SetBreakCharsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected