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

Function testOperatorPlusEqual

Tests/CMakeLib/testString.cxx:390–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390static bool testOperatorPlusEqual()
391{
392 std::cout << "testOperatorPlusEqual()\n";
393 cm::String str = "a";
394 str += "b";
395 {
396 char const* c = "c";
397 str += c;
398 }
399 str += 'd';
400 str += std::string("e");
401 str += cm::string_view("f", 1);
402 str += cm::String("g");
403 ASSERT_TRUE(str.size() == 7);
404 ASSERT_TRUE(std::strncmp(str.data(), "abcdefg", 7) == 0);
405 ASSERT_TRUE(str.is_stable());
406 return true;
407}
408
409static bool testOperatorCompare()
410{

Callers

nothing calls this directly

Calls 4

StringFunction · 0.85
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…