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

regression tests for existing kinds of bad params currently handled okay #301

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

jrochkind
Copy link
Member

@jrochkind jrochkind commented Dec 2, 2024

But in past versions of bl_range_limit i know from my own app resulted in uncaught exception 500s

and: Test that out of bounds ranges do not result in error

One test applying to formerly without tests #294.

In process, I realize that the values displayed in the "constraint" aren't clamped, so that'd be an area of improvement -- but I'm not too worried about it, I don't personally have a use case for it. The main thing is ensuring this bad data doesn't result in an uncaught exception, which this regression test now does.

@jrochkind jrochkind marked this pull request as ready for review December 2, 2024 17:38
@jrochkind
Copy link
Member Author

Does not include #300 because I exceeded my time budget trying to resolve it.

But in past versions of bl_range_limit i know from my own app resulted in uncaught exception 500s
One test applying to formerly without tests #294.

In process, I realize that the values displayed in the "constraint" aren't clamped, so that'd be an area of improvement -- but I'm not too worried about it, I don't personally have a use case for it. The main thing is ensuring this bad data doesn't result in an uncaught exception, which this regression test now does.
@jrochkind
Copy link
Member Author

Aha, one example is actually NOT handled okay in BL7, although is in BL8.

Trying to figure out what's up.

This branch correction is not necessary in BL 8, not sure why
@seanaery seanaery merged commit 87c5efc into main Dec 2, 2024
9 checks passed
@seanaery seanaery deleted the bad_params branch December 2, 2024 21:15
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