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

Function testMethod_length

Tests/CMakeLib/testString.cxx:572–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572static bool testMethod_length()
573{
574 std::cout << "testMethod_length()\n";
575 cm::String str;
576 ASSERT_TRUE(str.length() == 0);
577 str = "";
578 ASSERT_TRUE(str.length() == 0);
579 str = "abc";
580 ASSERT_TRUE(str.length() == 3);
581 str = std::string();
582 ASSERT_TRUE(str.length() == 0);
583 str = std::string("abc");
584 ASSERT_TRUE(str.length() == 3);
585 return true;
586}
587
588static bool testMethod_at()
589{

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…