[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:
parent
a5c01343c1
commit
2be6032c8d
@ -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});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user