MCPcopy Create free account
hub / github.com/apache/kvrocks / TEST

Function TEST

tests/cppunit/string_util_test.cc:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30#include <unordered_set>
31
32TEST(StringUtil, ToLower) {
33 std::map<std::string, std::string> cases{
34 {"ABC", "abc"},
35 {"AbC", "abc"},
36 {"abc", "abc"},
37 };
38 for (auto iter = cases.begin(); iter != cases.end(); iter++) {
39 std::string input = iter->first;
40 input = util::ToLower(input);
41 ASSERT_EQ(input, iter->second);
42 }
43}
44
45TEST(StringUtil, Trim) {
46 std::map<std::string, std::string> cases{

Callers

nothing calls this directly

Calls 15

ToLowerFunction · 0.85
TrimFunction · 0.85
SplitFunction · 0.85
TokenizeRedisProtocolFunction · 0.85
StartsWithFunction · 0.85
EndsWithFunction · 0.85
StartsWithICaseFunction · 0.85
EndsWithICaseFunction · 0.85
ValidateGlobFunction · 0.85
StringMatchFunction · 0.85
SplitGlobFunction · 0.85
EscapeStringFunction · 0.85

Tested by

no test coverage detected