RepeatDocPartProcessor.java

1
package pro.verron.officestamper.preset.processors.repeat;
2
3
import org.jspecify.annotations.Nullable;
4
import pro.verron.officestamper.api.OfficeStamper;
5
import pro.verron.officestamper.api.ProcessorContext;
6
import pro.verron.officestamper.preset.CommentProcessorFactory;
7
8
9
/// Processes the `<repeatDocPart>` comment. Uses the [OfficeStamper] to stamp sub-documents and copies the resulting
10
/// content to the correct position in the main document.
11
///
12
/// @author Joseph Verron
13
/// @author Youssouf Naciri
14
/// @version ${version}
15
/// @since 1.3.0
16
public class RepeatDocPartProcessor
17
        extends RepeatProcessor
18
        implements CommentProcessorFactory.IRepeatDocPartProcessor {
19
20
21
    /// Creates a new [RepeatDocPartProcessor] instance.
22
    ///
23
    /// @param processorContext the processor context
24
    public RepeatDocPartProcessor(ProcessorContext processorContext) {
25
        super(processorContext);
26
    }
27
28
    @Override
29
    public void repeatDocPart(@Nullable Iterable<Object> items) {
30 1 1. repeatDocPart : removed call to pro/verron/officestamper/preset/processors/repeat/RepeatDocPartProcessor::repeat → KILLED
        repeat(items);
31
    }
32
33
}

Mutations

30

1.1
Location : repeatDocPart
Killed by : pro.verron.officestamper.test.RegressionTests.[engine:junit-jupiter]/[class:pro.verron.officestamper.test.RegressionTests]/[test-template:test52(pro.verron.officestamper.test.RegressionTests$Conditions, java.lang.String)]/[test-template-invocation:#1]
removed call to pro/verron/officestamper/preset/processors/repeat/RepeatDocPartProcessor::repeat → KILLED

Active mutators

Tests examined


Report generated by PIT 1.22.0