MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_shape

Method test_shape

tests/transforms/test_repeat_channeld.py:35–37  ·  view source on GitHub ↗
(self, input_param, input_data, expected_shape)

Source from the content-addressed store, hash-verified

33class TestRepeatChanneld(unittest.TestCase):
34 @parameterized.expand(TESTS)
35 def test_shape(self, input_param, input_data, expected_shape):
36 result = RepeatChanneld(**input_param)(input_data)
37 self.assertEqual(result["img"].shape, expected_shape)
38
39
40if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

RepeatChanneldClass · 0.90

Tested by

no test coverage detected