MCPcopy Index your code
hub / github.com/python-pillow/Pillow / test_transform_with_wrap

Function test_transform_with_wrap

Tests/test_imagepath.py:186–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184
185
186def test_transform_with_wrap() -> None:
187 # Arrange
188 p = ImagePath.Path([0, 1, 2, 3])
189 theta = math.pi / 15
190
191 # Act
192 # Affine transform, in-place, with wrap parameter
193 p.transform(
194 (math.cos(theta), math.sin(theta), 20, -math.sin(theta), math.cos(theta), 20),
195 1.0,
196 )
197
198 # Assert
199 assert p.tolist() == [
200 (0.20791169081775962, 20.978147600733806),
201 (0.5800302739208902, 22.518619420565898),
202 ]
203
204
205def test_overflow_segfault() -> None:

Callers

nothing calls this directly

Calls 1

transformMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…