• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pkiraly / metadata-qa-marc / #1527

22 Aug 2025 02:21PM UTC coverage: 90.345%. Remained the same
#1527

push

pkiraly
Improve timeline handling

5191 of 6416 new or added lines in 219 files covered. (80.91%)

886 existing lines in 78 files now uncovered.

36717 of 40641 relevant lines covered (90.34%)

0.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.0
/src/main/java/de/gwdg/metadataqa/marc/cli/parameters/ShelfReadyCompletenessParameters.java
1
package de.gwdg.metadataqa.marc.cli.parameters;
2

3
import org.apache.commons.cli.ParseException;
4

5
public class ShelfReadyCompletenessParameters extends CommonParameters {
6
  public static final String DEFAULT_FILE_NAME = "shelf-ready-completeness.csv";
7

8
  private String fileName = DEFAULT_FILE_NAME;
1✔
9
  private boolean useStandardOutput = false;
1✔
10

11
  private boolean isOptionSet = false;
1✔
12

13
  protected void setOptions() {
14
    if (!isOptionSet) {
1✔
15
      super.setOptions();
1✔
16
      options.addOption("F", "fileName", true,
1✔
17
        String.format("the report file name (default is %s)", DEFAULT_FILE_NAME));
1✔
18
      isOptionSet = true;
1✔
19
    }
20
  }
1✔
21

22
  public ShelfReadyCompletenessParameters() {
23
    super();
1✔
24
  }
1✔
25

26
  public ShelfReadyCompletenessParameters(String[] arguments) throws ParseException {
27
    super(arguments);
1✔
28

29
    if (cmd.hasOption("fileName"))
1✔
UNCOV
30
      fileName = cmd.getOptionValue("fileName");
×
31

32
    if (fileName.equals("stdout"))
1✔
UNCOV
33
      useStandardOutput = true;
×
34
  }
1✔
35

36
  public String getFileName() {
37
    return fileName;
1✔
38
  }
39

40
  public boolean useStandardOutput() {
UNCOV
41
    return useStandardOutput;
×
42
  }
43

44
  @Override
45
  public String formatParameters() {
46
    String text = super.formatParameters();
1✔
47
    text += String.format("fileName: %s%n", fileName);
1✔
48
    text += String.format("useStandardOutput: %s%n", useStandardOutput);
1✔
49
    text += String.format("limit: %s%n", limit);
1✔
50
    text += String.format("offset: %s%n", offset);
1✔
51
    return text;
1✔
52
  }
53
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc