ProofErrVisitor.java

1
package pro.verron.officestamper.preset.preprocessors.prooferror;
2
3
import org.docx4j.utils.TraversalUtilVisitor;
4
import org.docx4j.wml.ProofErr;
5
6
import java.util.ArrayList;
7
import java.util.List;
8
9
public class ProofErrVisitor
10
        extends TraversalUtilVisitor<ProofErr> {
11
    private final List<ProofErr> proofErrs = new ArrayList<>();
12
13
    @Override
14
    public void apply(ProofErr element, Object parent1, List<Object> siblings) {
15
        proofErrs.add(element);
16
    }
17
18
    public List<ProofErr> getProofErrs() {
19 1 1. getProofErrs : replaced return value with Collections.emptyList for pro/verron/officestamper/preset/preprocessors/prooferror/ProofErrVisitor::getProofErrs → KILLED
        return proofErrs;
20
    }
21
}

Mutations

19

1.1
Location : getProofErrs
Killed by : pro.verron.officestamper.test.DefaultTests.[engine:junit-jupiter]/[class:pro.verron.officestamper.test.DefaultTests]/[test-template:features(java.lang.String, pro.verron.officestamper.api.OfficeStamperConfiguration, java.lang.Object, java.io.InputStream, java.lang.String)]/[test-template-invocation:#4]
replaced return value with Collections.emptyList for pro/verron/officestamper/preset/preprocessors/prooferror/ProofErrVisitor::getProofErrs → KILLED

Active mutators

Tests examined


Report generated by PIT 1.17.1