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

common-workflow-language / cwljava / #423

17 Dec 2025 10:33AM UTC coverage: 56.982% (-1.0%) from 57.972%
#423

push

github

web-flow
refresh 2025-12 (including extensions) (#218)

* "id" is a required field in for Parameters and WorkflowSteps
* regen; drop CommandLineBindableImpl; add optional CWL extensions

185 of 577 new or added lines in 21 files covered. (32.06%)

10 existing lines in 10 files now uncovered.

7892 of 13850 relevant lines covered (56.98%)

0.57 hits per line

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

0.0
/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoopOutputModes.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.commonwl.cwlsdk.cwl1_2;
16

17
import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException;
18

NEW
19
public enum LoopOutputModes {
×
NEW
20
  LAST("last"),
×
NEW
21
  ALL("all");
×
22

NEW
23
  private static String[] symbols = new String[] {"last", "all"};
×
24
  private String docVal;
25

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

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

© 2025 Coveralls, Inc