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

common-workflow-language / cwljava / #219

31 Oct 2023 04:14PM UTC coverage: 62.032% (-0.1%) from 62.139%
#219

push

github

mr-c
regen using latest CWL v1.2.1

https://github.com/common-workflow-language/cwl-v1.2/commit/0d538a0db

81 of 81 new or added lines in 19 files covered. (100.0%)

7174 of 11565 relevant lines covered (62.03%)

0.62 hits per line

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

90.0
/src/main/java/org/w3id/cwl/cwl1_2/Array_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

19
public enum Array_name {
1✔
20
  ARRAY("array");
1✔
21

22
  private static String[] symbols = new String[] {"array"};
1✔
23
  private String docVal;
24

25
  private Array_name(final String docVal) {
1✔
26
    this.docVal = docVal;
1✔
27
  }
1✔
28

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