(self, in_type, input_parameters, image, expected, coords)
| 77 | |
| 78 | @parameterized.expand(TEST_CASES_PATCH_ITER) |
| 79 | def test_patch_iter(self, in_type, input_parameters, image, expected, coords): |
| 80 | input_image = in_type(image) |
| 81 | patch_iterator = PatchIter(**input_parameters)(input_image) |
| 82 | for (result_image, result_loc), expected_patch, coord in zip(patch_iterator, expected, coords): |
| 83 | assert_allclose(result_image, in_type(expected_patch), type_test=True, device_test=True) |
| 84 | assert_allclose(result_loc, coord, type_test=True, device_test=True) |
| 85 | |
| 86 | @parameterized.expand(TEST_CASES_PATCH_ITER) |
| 87 | def test_patch_iterd(self, in_type, input_parameters, image, expected, coords): |
nothing calls this directly
no test coverage detected