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

Updated PredicateHandler to handle OR-ed predicates #265

Merged
merged 9 commits into from
Nov 24, 2023
Merged

Conversation

rakshitkr
Copy link
Contributor

Fixes issue #216

@rakshitkr rakshitkr requested a review from AnakinRaW June 8, 2020 13:07
Copy link
Collaborator

@AnakinRaW AnakinRaW left a comment

Choose a reason for hiding this comment

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

Looks good so far just some minor stuff.

Do we have a unit test for this issue already? If not, please create one.

@@ -33,7 +36,7 @@ public void accept(ErrorVisitor visitor){
public String toErrorMarkerString() {
String msg = extractedValues.toString();
msg += " was not properly generated as ";
String predicateName = getContradictedPredicate().getPredName();
String predicateName = getContradictedPredicate().stream().map(e -> e.toString()).collect(Collectors.joining(" OR "));
Copy link
Collaborator

Choose a reason for hiding this comment

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

do getPredName and toString yield the same result? Because i wonder why you changed the method call

Copy link
Collaborator

Choose a reason for hiding this comment

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

where is that " OR " comming from ? Also please use a constant for such important strings.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we have a unit test for this issue already? If not, please create one.

Please find the updated tests here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

where is that " OR " comming from ? Also please use a constant for such important strings.

It is used to generate error statements like below
Second parameter was not properly generated as generated E C Public Key Parameters(params) O R generated R S A Private Crt Key Parameters(params) O R generated R S A Key Parameters(params)

Copy link
Contributor Author

@rakshitkr rakshitkr Jun 27, 2020

Choose a reason for hiding this comment

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

do getPredName and toString yield the same result? Because i wonder why you changed the method call

No, they don't. getPredName only returns the predicate name. Whereas toString returns predicate name with respective parameter, like in above comment.

Have changed it to getPredName in commit 6f00e0c

rakshitkr and others added 5 commits June 27, 2020 11:10
Initial FN counts for <crypto.RSAEngineTest: void testDecryptOne(byte[])>, <params.ECPrivateKeyParametersTest: void testOne(java.lang.String)>, <transforms.ECNewRandomessTransformTest: void testFive(java.lang.String)> were specified improperly. They have been changed and verified.
@smeyer198 smeyer198 changed the base branch from develop to master November 24, 2023 10:50
@schlichtig schlichtig merged commit 465c909 into master Nov 24, 2023
8 checks passed
@smeyer198 smeyer198 deleted the fix-issue-216 branch November 24, 2023 11:34
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.

4 participants