• 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

72.22
/src/main/java/de/gwdg/metadataqa/marc/cli/parameters/ClassificationParameters.java
1
package de.gwdg.metadataqa.marc.cli.parameters;
2

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

5
import java.io.Serializable;
6

7
public class ClassificationParameters extends CommonParameters implements Serializable {
8
  private boolean isOptionSet;
9
  private boolean collectCollocations = false;
1✔
10

11
  @Override
12
  protected void setOptions() {
13
    if (!isOptionSet) {
1✔
14
      super.setOptions();
1✔
15
      options.addOption("A", "collectCollocations", false, "collect collocation of schemas");
1✔
16
      isOptionSet = true;
1✔
17
    }
18
  }
1✔
19

20
  public ClassificationParameters() {
21
    super();
1✔
22
  }
1✔
23

24
  public ClassificationParameters(String[] arguments) throws ParseException {
25
    super(arguments);
1✔
26

27
    if (cmd.hasOption("collectCollocations"))
1✔
28
      collectCollocations = true;
1✔
29
  }
1✔
30

31

32
  public boolean isDoCollectCollocations() {
33
    return collectCollocations;
1✔
34
  }
35

36
  public void setCollectCollocations(boolean collectCollocations) {
UNCOV
37
    this.collectCollocations = collectCollocations;
×
38
  }
×
39

40
  @Override
41
  public String formatParameters() {
UNCOV
42
    String text = super.formatParameters();
×
43
    text += String.format("collectCollocations: %s%n", collectCollocations);
×
44
    return text;
×
45
  }
46
}
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