MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / TEST_F

Function TEST_F

src/DictGroupTest.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26};
27
28TEST_F(DictGroupTest, KeyMaxLength) {
29 const DictGroupPtr& dictGroup = CreateDictGroupForConversion();
30 EXPECT_EQ(6, dictGroup->KeyMaxLength());
31 EXPECT_EQ(6, dictGroup->GetDicts().front()->KeyMaxLength());
32 EXPECT_EQ(3, dictGroup->GetDicts().back()->KeyMaxLength());
33}
34
35TEST_F(DictGroupTest, MatchPolicyDefaultsToShortCircuit) {
36 const DictGroupPtr& dictGroup = CreateDictGroupForConversion();

Callers

nothing calls this directly

Calls 10

NewFunction · 0.85
AddMethod · 0.80
SortMethod · 0.80
KeyMaxLengthMethod · 0.45
MatchPrefixMethod · 0.45
lengthMethod · 0.45
IsNullMethod · 0.45
KeyMethod · 0.45
GetMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected