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

Function testMethod_insert

Tests/CMakeLib/testString.cxx:643–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641}
642
643static bool testMethod_insert()
644{
645 std::cout << "testMethod_insert()\n";
646 cm::String str = "abc";
647 str.insert(1, 2, 'd').insert(0, 1, '_');
648 ASSERT_TRUE(str.size() == 6);
649 ASSERT_TRUE(std::strncmp(str.data(), "_addbc", 6) == 0);
650 return true;
651}
652
653static bool testMethod_erase()
654{

Callers

nothing calls this directly

Calls 3

insertMethod · 0.45
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…