OpenPrinting / OpenPrinting/libcups
ipptool: Add predicate for testing the number of occurrences of an attribute
Open
@michaelrsweet is already working on this.
Since May 17, 2022.
enhancement
priority-low
- Dominant language
- C
- Stars
- 81
- Forks
- 48
- Avg merge
- 23h 58m
- Merged PRs (30d)
- 2
Description
One of OpenPrinting's GSoC students asked about the ability to test the number of objects that operations like Get-Jobs return, however ipptool cannot do that yet.
Suggested syntax would be something like:
EXPECT-ALL attribute OCCURS 42
EXPECT-ALL attribute OCCURS >1
EXPECT-ALL attribute OCCURS <42
The OCCURS predicate would count the number of occurrences and then compare equality (42), greater than (>1), or less than (<42).
Would also be useful for validating support for the limit attribute...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.