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

Function testFromCStr

Tests/CMakeLib/testString.cxx:129–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127static char const* cstr = "abc";
128
129static bool testFromCStr(cm::String const& str)
130{
131 ASSERT_TRUE(str.data() != cstr);
132 ASSERT_TRUE(str.size() == 3);
133 ASSERT_TRUE(std::strncmp(str.data(), cstr, 3) == 0);
134 ASSERT_TRUE(str.is_stable());
135 return true;
136}
137
138static bool testConstructFromCStr()
139{

Callers 5

testConstructFromCStrFunction · 0.85
testAssignFromCStrFunction · 0.85
testConstructFromViewFunction · 0.85
testAssignFromViewFunction · 0.85
testConstructFromBufferFunction · 0.85

Calls 3

is_stableMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…