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

Function testConstructFromN

Tests/CMakeLib/testString.cxx:258–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258static bool testConstructFromN()
259{
260 std::cout << "testConstructFromN()\n";
261 cm::String const str(3, 'a');
262 ASSERT_TRUE(str.size() == 3);
263 ASSERT_TRUE(std::strncmp(str.data(), "aaa", 3) == 0);
264 ASSERT_TRUE(str.is_stable());
265 return true;
266}
267
268static auto const staticStringView = "abc"_s;
269

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…