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

common-workflow-language / cwljava / #338

29 Jan 2025 01:04PM UTC coverage: 60.167% (-2.0%) from 62.203%
#338

push

github

mr-c
regenerate using latest schema & schema-salad-tool

423 of 938 new or added lines in 62 files covered. (45.1%)

7347 of 12211 relevant lines covered (60.17%)

0.6 hits per line

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

0.0
/src/main/java/org/w3id/cwl/cwl1_2/Union_name.java
1
// Copyright Common Workflow Language project contributors
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//      http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14

15
package org.w3id.cwl.cwl1_2;
16

17
import org.w3id.cwl.cwl1_2.utils.ValidationException;
18

NEW
19
public enum Union_name {
×
NEW
20
  UNION("union");
×
21

NEW
22
  private static String[] symbols = new String[] {"union"};
×
23
  private String docVal;
24

NEW
25
  private Union_name(final String docVal) {
×
NEW
26
    this.docVal = docVal;
×
NEW
27
  }
×
28

29
  public static Union_name fromDocumentVal(final String docVal) {
NEW
30
    for(final Union_name val : Union_name.values()) {
×
NEW
31
      if(val.docVal.equals(docVal)) {
×
NEW
32
        return val;
×
33
      }
34
    }
NEW
35
    throw new ValidationException(String.format("Expected one of %s", Union_name.symbols, docVal));
×
36
  }
37
}
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