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

PUBLIC: [p4-constraints] Remove EntryMeetsConstraint and replace with ReasonEntryViolatesConstraint in tests. #120

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

angelazhang8
Copy link
Contributor

PUBLIC: [p4-constraints] Remove EntryMeetsConstraint and replace with ReasonEntryViolatesConstraint in tests.

EntryMeetsConstraint and ReasonEntryViolatesConstraint share common code. It was decided that we should keep ReasonEntryViolatesConstraint as it provides output that explains why an entry violated a constraint, whereas EntryMeetsConstraint does not. Tests were changed accordingly to use ReasonEntryViolatesConstraint. Documentation for https://github.com/p4lang/p4-constraints has been updated in another CL.

… ReasonEntryViolatesConstraint in tests.

EntryMeetsConstraint and ReasonEntryViolatesConstraint share common code. It was decided that we should keep ReasonEntryViolatesConstraint as it provides output that explains why an entry violated a constraint, whereas EntryMeetsConstraint does not. Tests were changed accordingly to use ReasonEntryViolatesConstraint. Documentation for https://github.com/p4lang/p4-constraints has been updated in another CL.

PiperOrigin-RevId: 581321018
@smolkaj smolkaj merged commit 398fb06 into master Nov 17, 2023
3 checks passed
@smolkaj smolkaj deleted the cl/581321018 branch November 17, 2023 02:10
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