[IE][TESTS] Test params generator: fixed conversion from map of vectors into vectors of pairs in case of empty vector. (#2445)

This commit is contained in:
Eugene Smirnov 2020-09-29 14:02:01 +03:00 committed by GitHub
parent a5c01343c1
commit 2be6032c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,9 @@ std::vector<std::pair<master, slave>> combineParams(
const std::map<master, std::vector<slave>>& keyValueSets) {
std::vector<std::pair<master, slave>> resVec;
for (auto& keyValues : keyValueSets) {
if (keyValues.second.empty()) {
resVec.push_back({keyValues.first, {}});
}
for (auto& item : keyValues.second) {
resVec.push_back({keyValues.first, item});
}