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

Function testConstructFromInitList

Tests/CMakeLib/testString.cxx:219–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219static bool testConstructFromInitList()
220{
221 std::cout << "testConstructFromInitList()\n";
222 cm::String const str{ 'a', 'b', 'c' };
223 ASSERT_TRUE(str.size() == 3);
224 ASSERT_TRUE(std::strncmp(str.data(), "abc", 3) == 0);
225 ASSERT_TRUE(str.is_stable());
226 return true;
227}
228
229static bool testAssignFromInitList()
230{

Callers

nothing calls this directly

Calls 3

is_stableMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…