Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for resource limits #2085

Merged
merged 28 commits into from
Jan 6, 2024
Merged

Conversation

Shnatsel
Copy link
Contributor

@Shnatsel Shnatsel commented Jan 4, 2024

This PR adds tests verifying that all decoding APIs enforce the resource limits.

I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to choose either at their option.

@Shnatsel Shnatsel marked this pull request as draft January 4, 2024 16:19
@Shnatsel
Copy link
Contributor Author

Shnatsel commented Jan 4, 2024

The fix actually broke some other stuff, so I'm going to make this PR purely about tests and then chip away at the test failures in subsequent PRs.

@Shnatsel Shnatsel changed the title Add tests for resource limits, improve default .set_limits() impl Add tests for resource limits Jan 4, 2024
@Shnatsel
Copy link
Contributor Author

Shnatsel commented Jan 4, 2024

This is now ready for review.

Since this only adds tests, the changes should be uncontroversial and won't break anything.

I'll propose fixes in subsequent PRs once this is merged.

@Shnatsel Shnatsel marked this pull request as ready for review January 4, 2024 21:14
tests/limits.rs Outdated Show resolved Hide resolved
@Shnatsel Shnatsel marked this pull request as draft January 4, 2024 23:14
@Shnatsel
Copy link
Contributor Author

Shnatsel commented Jan 6, 2024

The tests now cover the existing API surface and verify that the parts that are already in place work correctly.

I'll leave tests for and implementation of resource limits in animation to follow-up PRs.

@Shnatsel Shnatsel marked this pull request as ready for review January 6, 2024 01:53
@fintelia fintelia merged commit 96b8cee into image-rs:master Jan 6, 2024
35 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.

2 participants