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

common-workflow-language / cwljava / #394

31 Oct 2025 04:10PM UTC coverage: 57.972% (-1.6%) from 59.538%
#394

push

github

mr-c
rename package to a namespace that we control

7575 of 12994 new or added lines in 261 files covered. (58.3%)

7752 of 13372 relevant lines covered (57.97%)

0.58 hits per line

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

91.67
/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterMethod.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_1;
16

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

19
public enum ScatterMethod {
1✔
20
  DOTPRODUCT("dotproduct"),
1✔
21
  NESTED_CROSSPRODUCT("nested_crossproduct"),
1✔
22
  FLAT_CROSSPRODUCT("flat_crossproduct");
1✔
23

24
  private static String[] symbols = new String[] {"dotproduct", "nested_crossproduct", "flat_crossproduct"};
1✔
25
  private String docVal;
26

27
  private ScatterMethod(final String docVal) {
1✔
28
    this.docVal = docVal;
1✔
29
  }
1✔
30

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