MCPcopy Create free account
hub / github.com/avast/retdec / TEST_F

Function TEST_F

tests/common/patterns_tests.cpp:28–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26};
27
28TEST_F(PatternMatchItemTests, unknownCtorCreatesUnknownMatchWithNoParams)
29{
30 auto m = Pattern::Match::unknown();
31
32 EXPECT_TRUE(m.isTypeUnknown());
33 EXPECT_FALSE(m.isTypeIntegral());
34 EXPECT_FALSE(m.isTypeFloatingPoint());
35
36 EXPECT_FALSE(m.isOffsetDefined());
37 EXPECT_FALSE(m.isAddressDefined());
38 EXPECT_FALSE(m.isSizeDefined());
39 EXPECT_FALSE(m.isEntrySizeDefined());
40}
41
42TEST_F(PatternMatchItemTests, unknownCtorCreatesUnknownMatchWithAllParams)
43{

Callers

nothing calls this directly

Calls 15

isTypeUnknownMethod · 0.80
isTypeIntegralMethod · 0.80
isTypeFloatingPointMethod · 0.80
isOffsetDefinedMethod · 0.80
isAddressDefinedMethod · 0.80
isSizeDefinedMethod · 0.80
isEntrySizeDefinedMethod · 0.80
isTypeOtherMethod · 0.80
isTypeCryptoMethod · 0.80
isTypeMalwareMethod · 0.80
getOffsetMethod · 0.45
getAddressMethod · 0.45

Tested by

no test coverage detected