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

Unit Tests for Rule Parser and Evaluation #2

Closed
slint opened this issue Mar 3, 2025 · 1 comment
Closed

Unit Tests for Rule Parser and Evaluation #2

slint opened this issue Mar 3, 2025 · 1 comment

Comments

@slint
Copy link
Member

slint commented Mar 3, 2025

The rule parsing and evaluation functionality needs dedicated tests to ensure that rules are correctly parsed from their JSON configuration and evaluated against records.

Test Cases to Implement

  1. ExpressionParser

    • Test parsing each type of expression (field, comparison, logical, list)
    • Test error handling for invalid expression configurations
    • Test parsing nested expressions
  2. RuleParser

    • Test parsing complete rules with conditions and checks
    • Test parsing rules without conditions
    • Test error handling for invalid rule configurations
  3. Rule Evaluation

    • Test rule evaluation when condition is met
    • Test rule evaluation when condition is not met
    • Test rule evaluation with multiple checks
    • Test rule evaluation results format
@slint
Copy link
Member Author

slint commented Mar 6, 2025

Done via #1

@slint slint closed this as completed Mar 6, 2025
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

No branches or pull requests

1 participant