OpenPrinting / OpenPrinting/libcups

ipptool: Add predicate for testing the number of occurrences of an attribute

Open
#7 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.