MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / TEST_F

Function TEST_F

test/tests/StringTest.cpp:66–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64///////////////////////////////////////////////////////////////////////////////
65
66TEST_F(StringTest, Split_ByComma)
67{
68 auto actual = String::split("a,bb,ccc,dd", ",");
69 AssertVector<std::string_view>(actual, { "a", "bb", "ccc", "dd" });
70}
71TEST_F(StringTest, Split_ByColonColon)
72{
73 auto actual = String::split("a::bb:ccc:::::dd", "::");

Callers

nothing calls this directly

Calls 10

splitFunction · 0.85
convertToUtf8Function · 0.85
toUpperFunction · 0.85
logicalCmpFunction · 0.85
iequalsFunction · 0.85
equalsFunction · 0.85
AssertCodepointsFunction · 0.85
endMethod · 0.65
StringFromHexFunction · 0.50
beginMethod · 0.45

Tested by

no test coverage detected