MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / TEST

Function TEST

Engine/source/core/util/test/strTest.cpp:142–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142TEST(String, Empty)
143{
144 EXPECT_TRUE( String().length() == 0 );
145 EXPECT_TRUE( String( "" ).length() == 0 );
146 EXPECT_TRUE( String().size() == 1 );
147 EXPECT_TRUE( String( "" ).size() == 1 );
148 EXPECT_TRUE( String().isEmpty() );
149 EXPECT_TRUE( String( "" ).isEmpty() );
150}
151
152TEST(String, Trim)
153{

Callers

nothing calls this directly

Calls 15

trimMethod · 0.80
replaceMethod · 0.80
substrMethod · 0.80
getHashCaseSensitiveMethod · 0.80
isSameMethod · 0.80
internMethod · 0.80
StringClass · 0.50
U32Enum · 0.50
ToLowerFunction · 0.50
ToUpperFunction · 0.50
lengthMethod · 0.45

Tested by

no test coverage detected