ts: ROI cases are not being covered by ArrayTest
ArrayTest class have two storages for arrays: vector<vector<void*>> test_array for old functions and vector<vector<Mat>> test_mat for new functions. The first one is being filled with data and the second one is copied from the first:
https://github.com/opencv/opencv/blob/783fe72756a5ff6041c446599a96a766a0681d06/modules/ts/src/ts_arrtest.cpp#L210-L222
However, the function cvarrToMat being used to convert old array to Mat clears the ROI indicator and creates plain object instead (data == datastart, dataend unset or at the end). Example for IplImage: https://github.com/opencv/opencv/blob/783fe72756a5ff6041c446599a96a766a0681d06/modules/core/src/matrix_c.cpp#L109-L129
Thus all ArrayTest-based tests using test_mat and new functions will effectively miss ROI case. For example Core_MulSpectrums.accuracy. Here neither of src1, src2 or dst will be ROI Mat in any case: https://github.com/opencv/opencv/blob/783fe72756a5ff6041c446599a96a766a0681d06/modules/core/test/test_dxt.cpp#L822
Source: opencv/opencv