Skip to content

Pin the polygon phasor cursor, and take one through the endpoint - #14

Merged
alex1075 merged 2 commits into
mainfrom
test/polygon-cursors
Aug 24, 2026
Merged

alex1075 merged 2 commits into
mainfrom
test/polygon-cursors

Conversation

@alex1075

Copy link
Copy Markdown
Contributor

cursor_masks has dispatched type: 'polygon' since #6 and had no tests at all. This adds fourteen.

Eight cover the function directly: selection against a two-population field, coexistence with an ellipse in one request, the photon floor, the three-vertex minimum, the rejection of an unknown cursor type, labelling, and the lifetimes reported back.

Six go over HTTP, which is where nothing was looking. A polygon covering the plane selects every valid pixel the density endpoint reports, two half-plane polygons partition them, the lifetimes and photon count come back, the label image agrees with the reported pixel count, a polygon and an ellipse are labelled apart, and a two-vertex polygon is a 400 rather than a 500.

The endpoint tests need FLIMKIT_TEST_PTU and skip without it, like the rest of that file. With it set: 246 passed, 31 skipped.

Nothing here changes behaviour. It pins the path the freehand tool depends on.

🤖 Generated with Claude Code

alex1075 and others added 2 commits August 24, 2026 10:32
The polygon path has been reachable since #6 and had no tests. These
cover selection, coexistence with an ellipse, the photon floor, the
vertex minimum, labelling and the reported lifetimes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The polygon path was covered in Python at the function level and in Java
at the payload level, with nothing crossing between them. These go over
HTTP: a polygon covering the plane selects every valid pixel, two halves
partition them, the lifetimes come back, the label image agrees with the
reported count, and a two-vertex polygon is a 400.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@alex1075
alex1075 merged commit aaa1c46 into main Aug 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant