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

common-workflow-language / cwljava / #332

09 Dec 2024 02:59AM CUT coverage: 62.203%. Remained the same
#332

Pull #190

github

web-flow
Merge dd2a2c071 into 11fff259d
Pull Request #190: Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.11.1 to 3.11.2

7182 of 11546 relevant lines covered (62.2%)

0.62 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_1/Expression.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_1;
16

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

19
public enum Expression {
×
20
  EXPRESSIONPLACEHOLDER("ExpressionPlaceholder");
×
21

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

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

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

© 2025 Coveralls, Inc