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

Function testAssignFromInitList

Tests/CMakeLib/testString.cxx:229–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229static bool testAssignFromInitList()
230{
231 std::cout << "testAssignFromInitList()\n";
232 cm::String str;
233 str = { 'a', 'b', 'c' };
234 ASSERT_TRUE(str.size() == 3);
235 ASSERT_TRUE(std::strncmp(str.data(), "abc", 3) == 0);
236 ASSERT_TRUE(str.is_stable());
237 return true;
238}
239
240static bool testConstructFromBuffer()
241{

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…