MCPcopy Create free account
hub / github.com/InoriRus/Kyty / test_move

Function test_move

source/unit_test/src/core/UnitTestCoreString.cpp:985–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983}
984
985void test_move()
986{
987 String str = U"123";
988 StringList list;
989 EXPECT_TRUE(!str.IsInvalid());
990 list.Add(std::move(str));
991 EXPECT_TRUE(str.IsInvalid()); // NOLINT(hicpp-invalid-access-moved,bugprone-use-after-move)
992 str = U"234";
993 EXPECT_TRUE(!str.IsInvalid());
994 EXPECT_EQ(str, U"234");
995 EXPECT_EQ(list, StringList({U"123"}));
996}
997
998TEST(Core, CharString)
999{

Callers 1

TESTFunction · 0.70

Calls 3

StringListClass · 0.85
IsInvalidMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected