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

org.pitest.mutationtest.build.KnownStatusMutationTestUnit Maven / Gradle / Ivy

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

import java.util.List;
import java.util.logging.Logger;

import org.pitest.mutationtest.MutationMetaData;
import org.pitest.mutationtest.MutationResult;
import org.pitest.util.Log;

public class KnownStatusMutationTestUnit implements MutationAnalysisUnit {

  private static final Logger        LOG = Log.getLogger();

  private final List mutations;

  public KnownStatusMutationTestUnit(final List mutations) {
    this.mutations = mutations;
  }

  @Override
  public MutationMetaData call() throws Exception {
    LOG.fine("Using historic results for " + this.mutations.size()
        + " mutations");
    return new MutationMetaData(this.mutations);

  }

  @Override
  public int priority() {
    return Integer.MAX_VALUE;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy