MCPcopy Create free account
hub / github.com/Kitware/CMake / testFromCStrNull

Function testFromCStrNull

Tests/CMakeLib/testString.cxx:63–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static bool testFromCStrNull(cm::String str)
64{
65 cm::String const& str_const = str;
66 ASSERT_TRUE(bool(str_const) == false);
67 ASSERT_TRUE(str_const.data() == nullptr);
68 ASSERT_TRUE(str_const.size() == 0);
69 ASSERT_TRUE(str_const.empty());
70 ASSERT_TRUE(str_const.is_stable());
71 ASSERT_TRUE(str.c_str() == nullptr);
72 ASSERT_TRUE(str.str().empty());
73 ASSERT_TRUE(str.is_stable());
74 return true;
75}
76
77static bool testConstructFromCStrNull()
78{

Callers 2

testAssignFromCStrNullFunction · 0.85

Calls 6

is_stableMethod · 0.80
c_strMethod · 0.80
strMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…