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

Function TEST_F

tests/utils/string_tests.cpp:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25//
26
27TEST_F(StringTests,
28HasOnlyDecimalDigitsHasOnlyDecimalDigits) {
29 EXPECT_TRUE(hasOnlyDecimalDigits(""));
30 EXPECT_TRUE(hasOnlyDecimalDigits("1"));
31 EXPECT_TRUE(hasOnlyDecimalDigits("134573908"));
32 EXPECT_TRUE(hasOnlyDecimalDigits("0123456789"));
33
34 EXPECT_FALSE(hasOnlyDecimalDigits("b"));
35 EXPECT_FALSE(hasOnlyHexadecimalDigits("#"));
36 EXPECT_FALSE(hasOnlyDecimalDigits("86c435"));
37}
38
39//
40// hasOnlyHexadecimalDigits()

Callers

nothing calls this directly

Calls 15

hasOnlyDecimalDigitsFunction · 0.85
hasOnlyHexadecimalDigitsFunction · 0.85
hasNonprintableCharsFunction · 0.85
hasNonasciiCharsFunction · 0.85
containsFunction · 0.85
containsAnyFunction · 0.85
containsCaseInsensitiveFunction · 0.85
containsAnyOfCharsFunction · 0.85
areEqualCaseInsensitiveFunction · 0.85
toLowerFunction · 0.85
toUpperFunction · 0.85

Tested by

no test coverage detected