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 error case where a required field is missing when visiting #674

Open
sebastiantia opened this issue Feb 3, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@sebastiantia
Copy link
Collaborator

Please describe why this is necessary.

Currently, none of the tests in kernel/src/actions/visitor.rs verify error cases where a required field (e.g., add.path) is missing. This means we are not asserting expected failures in cases where input data is malformed or incomplete.

Describe the functionality you are proposing.

Define a custom error type VisitorError to represent failure cases more explicitly.

Add tests asserting for failures in cases where action data is malformed or incomplete.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant