Internal change
PiperOrigin-RevId: 527473249
This commit is contained in:
parent
2122b5d7be
commit
7b055df211
|
@ -60,7 +60,7 @@ std::string GetUnusedSidePacketName(
|
|||
}
|
||||
std::string candidate = input_side_packet_name_base;
|
||||
int iter = 2;
|
||||
while (mediapipe::ContainsKey(input_side_packets, candidate)) {
|
||||
while (input_side_packets.contains(candidate)) {
|
||||
candidate = absl::StrCat(input_side_packet_name_base, "_",
|
||||
absl::StrFormat("%02d", iter));
|
||||
++iter;
|
||||
|
|
|
@ -101,7 +101,7 @@ void TestSuccessTagMap(const std::vector<std::string>& tag_index_names,
|
|||
EXPECT_EQ(tags.size(), tag_map->Mapping().size())
|
||||
<< "Parameters: in " << tag_map->DebugString();
|
||||
for (int i = 0; i < tags.size(); ++i) {
|
||||
EXPECT_TRUE(mediapipe::ContainsKey(tag_map->Mapping(), tags[i]))
|
||||
EXPECT_TRUE(tag_map->Mapping().contains(tags[i]))
|
||||
<< "Parameters: Trying to find \"" << tags[i] << "\" in\n"
|
||||
<< tag_map->DebugString();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user