mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge pull request #26987 from mshabunin:fix-videoio-test-params-5
videoio: print test params instead of indexes (5.x) #26987 Port of #26948 to 5.x
This commit is contained in:
@@ -218,7 +218,14 @@ static const string bunny_params[] = {
|
||||
string("mjpg.avi")
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(videoio, gstreamer_bunny, testing::ValuesIn(bunny_params));
|
||||
inline static std::string gstreamer_bunny_name_printer(const testing::TestParamInfo<gstreamer_bunny::ParamType>& info)
|
||||
{
|
||||
std::ostringstream out;
|
||||
out << extToStringSafe(info.param);
|
||||
return out.str();
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(videoio, gstreamer_bunny, testing::ValuesIn(bunny_params), gstreamer_bunny_name_printer);
|
||||
|
||||
|
||||
}} // namespace
|
||||
|
||||
Reference in New Issue
Block a user