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 IGNORE_ALWAYS #322

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

timostamm
Copy link
Member

With FieldConstraints.ignore = IGNORE_ALWAYS, the validation rules of a field will be skipped and not evaluated.

This PR adds 140 tests to ensure that rules are skipped. The new tests follow the pattern of the existing tests for IGNORE_IF_UNPOPULATED and the other ignore options.

Same as the existing tests, the new tests do not cover that custom field constraints or nested constraints (a field referencing a message that has field constraints) are skipped. We may want to extend the coverage in a follow-up.

Copy link

github-actions bot commented Feb 28, 2025

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedFeb 28, 2025, 4:47 PM

@timostamm timostamm added the Conformance Related to the conformance testing cases or harness label Feb 28, 2025
@timostamm timostamm requested a review from rodaine February 28, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Conformance Related to the conformance testing cases or harness
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants