Lines Matching refs:pair
75 std::pair<std::string, std::string> pair; in TEST() local
77 pair = string_utils::SplitAtFirst(" 123 : 4 : 56 : 789 ", ":", true); in TEST()
78 EXPECT_EQ("123", pair.first); in TEST()
79 EXPECT_EQ("4 : 56 : 789", pair.second); in TEST()
81 pair = string_utils::SplitAtFirst(" 123 : 4 : 56 : 789 ", ":", false); in TEST()
82 EXPECT_EQ(" 123 ", pair.first); in TEST()
83 EXPECT_EQ(" 4 : 56 : 789 ", pair.second); in TEST()
85 pair = string_utils::SplitAtFirst("", "="); in TEST()
86 EXPECT_EQ("", pair.first); in TEST()
87 EXPECT_EQ("", pair.second); in TEST()
89 pair = string_utils::SplitAtFirst("=", "="); in TEST()
90 EXPECT_EQ("", pair.first); in TEST()
91 EXPECT_EQ("", pair.second); in TEST()
93 pair = string_utils::SplitAtFirst("a=", "="); in TEST()
94 EXPECT_EQ("a", pair.first); in TEST()
95 EXPECT_EQ("", pair.second); in TEST()
97 pair = string_utils::SplitAtFirst("abc=", "="); in TEST()
98 EXPECT_EQ("abc", pair.first); in TEST()
99 EXPECT_EQ("", pair.second); in TEST()
101 pair = string_utils::SplitAtFirst("=a", "="); in TEST()
102 EXPECT_EQ("", pair.first); in TEST()
103 EXPECT_EQ("a", pair.second); in TEST()
105 pair = string_utils::SplitAtFirst("=abc=", "="); in TEST()
106 EXPECT_EQ("", pair.first); in TEST()
107 EXPECT_EQ("abc=", pair.second); in TEST()
109 pair = string_utils::SplitAtFirst("abc", "="); in TEST()
110 EXPECT_EQ("abc", pair.first); in TEST()
111 EXPECT_EQ("", pair.second); in TEST()
113 pair = string_utils::SplitAtFirst("abc:=xyz", ":="); in TEST()
114 EXPECT_EQ("abc", pair.first); in TEST()
115 EXPECT_EQ("xyz", pair.second); in TEST()
117 pair = string_utils::SplitAtFirst("abc", ""); in TEST()
118 EXPECT_EQ("", pair.first); in TEST()
119 EXPECT_EQ("abc", pair.second); in TEST()