Implement tests for conditions using predicate
- Dominant language
- Python
- Stars
- 7
- Forks
- 29
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 7
Description
**Summary**
Both `when` (rule-level) and `patterns` are lists that accept the following objects:
- select, operator, value
- patternRef
- predicate -> this one is new in v1beta3
Top-level `when` conditions support only `predicate`.
Investigate test coverage of all 3 objects mentioned above for:
- [ ] rule-level `when` conditions
- [ ] `patterns`
Possible to simply extend `test_patternref_expressions.py`.
Contributor guide
Research direction
Start by reviewing test_patternref_expressions.py and the existing coverage for rule-level when conditions and patterns. Add coverage for select/operator/value, patternRef, and predicate objects in both areas, noting that top-level when conditions support only predicate. Done means the listed condition cases are tested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100