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

[luci/service] Change assert to throw exception for invalid paddings #14016

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

icodo98
Copy link
Contributor

@icodo98 icodo98 commented Sep 13, 2024

This PR modifies the pad operation to throw exceptions for invalid paddings, replacing the previous assert conditions.

ONE-DCO-1.0-Signed-off-by: JuYoung Lee [email protected]

throw exception when paddings are incorrect.

ONE-DCO-1.0-Signed-off-by: JuYoung Lee [email protected]
add some NEG tests for pad operation.

ONE-DCO-1.0-Signed-off-by: JuYoung Lee [email protected]
@icodo98 icodo98 added the SSAFY label Sep 13, 2024
@icodo98 icodo98 requested a review from a team September 13, 2024 05:46
@icodo98
Copy link
Contributor Author

icodo98 commented Sep 13, 2024

original : #13949
related : #13977

Copy link
Contributor

@shs-park shs-park left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
I think you may launch PR based on this =)

@icodo98 icodo98 marked this pull request as ready for review September 13, 2024 07:02
@icodo98 icodo98 changed the title [Draft][luci/service] Add negative test cases for pad [luci/service] Add negative test cases for pad Sep 13, 2024
@icodo98 icodo98 requested a review from a team September 13, 2024 07:02
@icodo98 icodo98 added the PR/ready for review It is ready to review. Please review it. label Sep 13, 2024
@seanshpark
Copy link
Contributor

plz revise title/comment. this PR is to change condition from assert to throw exception.
test is to check the changes.

@seanshpark seanshpark self-requested a review September 13, 2024 07:05
@icodo98 icodo98 changed the title [luci/service] Add negative test cases for pad [luci/service] Change assert to throw exception for invalid paddings Sep 13, 2024
@icodo98
Copy link
Contributor Author

icodo98 commented Sep 13, 2024

plz revise title/comment. this PR is to change condition from assert to throw exception. test is to check the changes.

Changed :)

Copy link
Contributor

@seanshpark seanshpark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thank you!

@seanshpark seanshpark merged commit b157711 into Samsung:master Sep 13, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR/ready for review It is ready to review. Please review it. SSAFY
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants