| 33 | namespace internal { |
| 34 | |
| 35 | TEST(Trim, Basics) { |
| 36 | std::vector<std::pair<std::string, std::string>> test_cases = { |
| 37 | {"", ""}, {" ", ""}, {" ", ""}, {"\t ", ""}, |
| 38 | {" \ta\t ", "a"}, {" \ta", "a"}, {"ab \t", "ab"}}; |
| 39 | for (auto case_ : test_cases) { |
| 40 | EXPECT_EQ(case_.second, TrimString(case_.first)); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | TEST(AsciiEqualsCaseInsensitive, Basics) { |
| 45 | ASSERT_TRUE(AsciiEqualsCaseInsensitive("foo", "Foo")); |
nothing calls this directly
no test coverage detected