RprLangVisitor.java

1
package pro.verron.officestamper.preset.preprocessors.rmlang;
2
3
import org.docx4j.utils.TraversalUtilVisitor;
4
import org.docx4j.wml.R;
5
import org.docx4j.wml.RPr;
6
7
import java.util.ArrayList;
8
import java.util.List;
9
10
public class RprLangVisitor
11
        extends TraversalUtilVisitor<R> {
12
    private final List<RPr> rPrs = new ArrayList<>();
13
14
    @Override
15
    public void apply(R element, Object parent1, List<Object> siblings) {
16 1 1. apply : negated conditional → KILLED
        if (element.getRPr() != null && element.getRPr()
17 1 1. apply : negated conditional → SURVIVED
                                               .getLang() != null)
18
            rPrs.add(element.getRPr());
19
    }
20
21
    public List<RPr> getrPrs() {
22 1 1. getrPrs : replaced return value with Collections.emptyList for pro/verron/officestamper/preset/preprocessors/rmlang/RprLangVisitor::getrPrs → SURVIVED
        return rPrs;
23
    }
24
}

Mutations

16

1.1
Location : apply
Killed by : pro.verron.officestamper.test.SpelInstantiationTest.[engine:junit-jupiter]/[class:pro.verron.officestamper.test.SpelInstantiationTest]/[test-template:testDateInstantiationAndResolution(pro.verron.officestamper.test.ContextFactory)]/[test-template-invocation:#2]
negated conditional → KILLED

17

1.1
Location : apply
Killed by : none
negated conditional → SURVIVED
Covering tests

22

1.1
Location : getrPrs
Killed by : none
replaced return value with Collections.emptyList for pro/verron/officestamper/preset/preprocessors/rmlang/RprLangVisitor::getrPrs → SURVIVED
Covering tests

Active mutators

Tests examined


Report generated by PIT 1.20.0