All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pitest.mutationtest.verify.CompoundBuildVerifierFactory Maven / Gradle / Ivy

There is a newer version: 1.17.1
Show newest version
package org.pitest.mutationtest.verify;

import org.pitest.classpath.CodeSource;

import java.util.List;
import java.util.stream.Collectors;

public class CompoundBuildVerifierFactory implements BuildVerifierFactory {

    List verifiers;

    public CompoundBuildVerifierFactory(List verifiers) {
        this.verifiers = verifiers;
    }

    @Override
    public BuildVerifier create(CodeSource code) {
        return () -> verifiers.stream()
                .map(f -> f.create(code))
                .flatMap(v -> v.verify().stream())
                .collect(Collectors.toList());
    }

    @Override
    public String description() {
        return "Build Verifier";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy