src/developer/feedback/feedback_agent/tests/product_info_provider_unittest.cc
std::string GetTestCaseName(
    const testing::TestParamInfo<std::map<std::string, std::string>>& info) {
  bool is_first = true;
  std::string name;
  for (const auto& [key, _] : info.param) {
    std::string key_suffix = key.substr(key.find_last_of(".") + 1);

    // Remove any '-'.
    key_suffix.erase(std::remove(key_suffix.begin(), key_suffix.end(), '-'), key_suffix.end());

    // If this isn't the first key in the map, convert the first letter of the string to uppercase.
    if (!is_first) {
      key_suffix[0] -= ('a' - 'A');
    }
    name += key_suffix;
    is_first = false;
  }
  return name;
}
// Return all of the strings after the last '.' in each key concatenated together in camelCase.
Return all of the strings after the last '.' in each key concatenated together in camelCase.
Return all of the strings after the last ' . ' in each key concatenated together in camelCase .
std::string GetTestCaseName(
    const testing::TestParamInfo<std::map<std::string, std::string>>& info) {
  bool is_first = true;
  std::string name;
  for (const auto& [key, _] : info.param) {
    std::string key_suffix = key.substr(key.find_last_of(".") + 1);
    key_suffix.erase(std::remove(key_suffix.begin(), key_suffix.end(), '-'), key_suffix.end());
    if (!is_first) {
      key_suffix[0] -= ('a' - 'A');
    }
    name += key_suffix;
    is_first = false;
  }
  return name;
}
std :: string GetTestCaseName ( const testing :: TestParamInfo < std :: map < std :: string , std :: string > > & info ) { bool is_first = true ; std :: string name ; for ( const auto & [ key , _ ] : info . param ) { std :: string key_suffix = key . substr ( key . find_last_of ( " " ) + 1 ) ; key_suffix . erase ( std :: remove ( key_suffix . begin ( ) , key_suffix . end ( ) , ' ' ) , key_suffix . end ( ) ) ; if ( ! is_first ) { key_suffix [ 0 ] -= ( ' ' - ' ' ) ; } name += key_suffix ; is_first = false ; } return name ; }
Return all of the strings after the last '.'
Return all of the strings after the last ' . '
// Remove any '-'. // If this isn't the first key in the map, convert the first letter of the string to uppercase.