@@ -257,7 +257,7 @@
Loading
257 257
                    result = parser.getResult();
258 258
                } else if (ResultType.VALUES_RESULT == executable.getResultType()) {
259 259
                    StrengthFileParser parser = new StrengthFileParser(resultFile);
260 -
                    parser.parse();
260 +
                    parser.parse(false);
261 261
                    result = parser.getResult();
262 262
                } else if (ResultType.MATCH_RESULT == executable.getResultType()) {
263 263
                    MatchOutputParser parser = new MatchOutputParser(executable.getOutputFile());

@@ -25,17 +25,16 @@
Loading
25 25
import java.util.ArrayList;
26 26
import java.util.List;
27 27
28 -
import cern.accsoft.steering.jmad.domain.knob.Knob;
29 28
import cern.accsoft.steering.jmad.domain.knob.strength.Strength;
30 29
31 30
public class StrengthResult implements Result {
32 31
33 -
    private final List<Strength> strengthes;
34 -
    private final List<Double> doubleValues = new ArrayList<Double>();
32 +
    private final List<Strength> strengths;
33 +
    private final List<Double> doubleValues = new ArrayList<>();
35 34
36 -
    public StrengthResult(List<Strength> strengthes) {
37 -
        this.strengthes = strengthes;
38 -
        for (Knob value : strengthes) {
35 +
    public StrengthResult(List<Strength> strengths) {
36 +
        this.strengths = strengths;
37 +
        for (Strength value : strengths) {
39 38
            doubleValues.add(value.getValue());
40 39
        }
41 40
    }
@@ -46,7 +45,7 @@
Loading
46 45
    }
47 46
48 47
    public List<Strength> getValues() {
49 -
        return strengthes;
48 +
        return strengths;
50 49
    }
51 50
52 51
    public List<Double> getDoubleValues() {

@@ -26,13 +26,12 @@
Loading
26 26
import java.util.ArrayList;
27 27
import java.util.List;
28 28
29 -
import org.slf4j.Logger;
30 -
import org.slf4j.LoggerFactory;
31 -
32 29
import cern.accsoft.steering.jmad.domain.var.custom.StrengthVarSet;
33 30
import cern.accsoft.steering.jmad.domain.var.custom.StrengthVarSetImpl;
34 31
import cern.accsoft.steering.jmad.io.StrengthFileParser;
35 32
import cern.accsoft.steering.jmad.io.StrengthFileParserException;
33 +
import org.slf4j.Logger;
34 +
import org.slf4j.LoggerFactory;
36 35
37 36
/**
38 37
 * This is the default implementation of a {@link StrengthVarManager}
@@ -67,7 +66,7 @@
Loading
67 66
68 67
        StrengthFileParser parser = new StrengthFileParser(file);
69 68
        try {
70 -
            parser.parse();
69 +
            parser.parse(true);
71 70
        } catch (StrengthFileParserException e) {
72 71
            LOGGER.error("Could not parse file '" + file.getAbsolutePath() + "'.", e);
73 72
            return;

@@ -60,7 +60,7 @@
Loading
60 60
        this.file = file;
61 61
    }
62 62
63 -
    public void parse() throws StrengthFileParserException {
63 +
    public void parse(boolean checkForValidStrengthNames) throws StrengthFileParserException {
64 64
65 65
        TextFileParser parser = new TextFileParserImpl();
66 66
@@ -118,7 +118,7 @@
Loading
118 118
                throw new StrengthFileParserException("Line does not seem to end with an ';' : '" + line + "'");
119 119
            }
120 120
121 -
            if (!isValidMadxName(name)) {
121 +
            if (checkForValidStrengthNames && !isValidMadxName(name)) {
122 122
                LOGGER.debug("{} is not a MAD-X variable name. Ignoring.", name);
123 123
                continue;
124 124
            }
Files Complexity Coverage
src/java/cern/accsoft/steering/jmad 42.38% 47.44%
Project Totals (293 files) 42.38% 47.44%
208.2
openjdk11=
TRAVIS_OS_NAME=linux
208.1
TRAVIS_OS_NAME=linux
openjdk8=
209.2
openjdk11=
TRAVIS_OS_NAME=linux
209.1
TRAVIS_OS_NAME=linux
openjdk8=

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading