Skip to content

fix(test): allow driver.ImageSampling in the public API - #1815

Closed
houko wants to merge 1 commit into
mainfrom
fix/public-api-image-sampling
Closed

houko wants to merge 1 commit into
mainfrom
fix/public-api-image-sampling

Conversation

@houko

@houko houko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Main has been failing TestPublicAPINamesNoInternalType since eafa68a (nearest-neighbor image sampling):

reaches driver.ImageSampling through DrawOp.Sampling, which is outside the public driver allowlist

DrawOp is already on the allowlist and core re-exports the type as core.ImageSampling, so this adds ImageSampling next to ImageScales and ImageSource in internal/moduletest/driver_api_test.go.

This is the second of the two test failures on main; #1797 covers TestMinimalAppLinks.

Verification

  • go test ./internal/moduletest -run TestPublicAPINames -count=1 passes on Linux.

Screenshots

None.

eafa68a added DrawOp.Sampling, which exposes driver.ImageSampling through the already-allowlisted DrawOp. core re-exports it as core.ImageSampling, so it belongs on the public driver allowlist next to ImageScales and ImageSource. This turns TestPublicAPINamesNoInternalType green on main again.
@houko

houko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #1874, which stacks this fix with the other two main fixes (#1797, #1815, #1847) so that one PR can pass every required check.

@houko houko closed this Nov 22, 2026
auto-merge was automatically disabled November 22, 2026 03:13

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant