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
/// @since 1.3.0
15
public class RepeatDocPartProcessor
16
        extends RepeatProcessor
17
        implements CommentProcessorFactory.IRepeatDocPartProcessor {
18
19
20
    /// Creates a new [RepeatDocPartProcessor] instance.
21
    ///
22
    /// @param processorContext the processor context
23
    public RepeatDocPartProcessor(ProcessorContext processorContext) {
24
        super(processorContext);
25
    }
26
27
    @Override
28
    public void repeatDocPart(@Nullable Iterable<Object> items) {
29 1 1. repeatDocPart : removed call to pro/verron/officestamper/preset/processors/repeat/RepeatDocPartProcessor::repeat → KILLED
        repeat(items);
30
    }
31
32
}

Mutations

29

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.25.5 support