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

pkiraly / metadata-qa-api / #644

03 Apr 2025 09:28AM UTC coverage: 87.234% (-0.2%) from 87.454%
#644

push

pkiraly
Add mandatory and scope as generic rule properties #225

70 of 87 new or added lines in 12 files covered. (80.46%)

6 existing lines in 4 files now uncovered.

5453 of 6251 relevant lines covered (87.23%)

0.87 hits per line

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

46.67
/src/main/java/de/gwdg/metadataqa/api/configuration/schema/MQAFPattern.java
1
package de.gwdg.metadataqa.api.configuration.schema;
2

3
import org.apache.commons.lang3.StringUtils;
4

5
import java.util.List;
6
import java.util.regex.Pattern;
7

8
public class MQAFPattern {
9
  List<String> pattern;
10
  Pattern compiledPattern;
11
  ApplicationScope scope = ApplicationScope.anyOf;
1✔
12

13
  public MQAFPattern() {
1✔
14
  }
1✔
15

16
  public List<String> getPattern() {
17
    return pattern;
×
18
  }
19

20
  public void setPattern(List<String> pattern) {
21
    this.pattern = pattern;
1✔
22
    this.compiledPattern = Pattern.compile(StringUtils.join(pattern, "|"));
1✔
23
  }
1✔
24

25
  public MQAFPattern withPattern(List<String> pattern) {
26
    setPattern(pattern);
×
27
    return this;
×
28
  }
29

30
  public ApplicationScope getScope() {
UNCOV
31
    return scope;
×
32
  }
33

34
  public void setScope(ApplicationScope scope) {
35
    this.scope = scope;
×
36
  }
×
37

38
  public MQAFPattern withScope(ApplicationScope scope) {
39
    this.scope = scope;
×
40
    return this;
×
41
  }
42

43
  public Pattern getCompiledPattern() {
44
    return compiledPattern;
1✔
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