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

Method test_invalid_inputs

tests/transforms/test_rand_flip.py:32–35  ·  view source on GitHub ↗
(self, _, spatial_axis, raises)

Source from the content-addressed store, hash-verified

30class TestRandFlip(NumpyImageTestCase2D):
31 @parameterized.expand(INVALID_CASES)
32 def test_invalid_inputs(self, _, spatial_axis, raises):
33 with self.assertRaises(raises):
34 flip = RandFlip(prob=1.0, spatial_axis=spatial_axis)
35 flip(self.imt[0])
36
37 @parameterized.expand(VALID_CASES)
38 def test_correct_results(self, _, spatial_axis):

Callers

nothing calls this directly

Calls 2

RandFlipClass · 0.90
flipFunction · 0.85

Tested by

no test coverage detected