PullRequestCreationPolicy.java

1
package edu.ucsb.cs156.frontiers.enums;
2
3
/**
4
 * Who may open pull requests against a GitHub repository: the values of the repository setting
5
 * {@code pull_request_creation_policy}.
6
 */
7
public enum PullRequestCreationPolicy {
8
  /** Only users with at least Write access to the repository. */
9
  COLLABORATORS_ONLY("collaborators_only"),
10
  /** Anyone who can see the repository. */
11
  ALL("all");
12
13
  private final String githubValue;
14
15
  PullRequestCreationPolicy(String githubValue) {
16
    this.githubValue = githubValue;
17
  }
18
19
  /** The value that GitHub's REST API uses for this policy. */
20
  public String getGithubValue() {
21 1 1. getGithubValue : replaced return value with "" for edu/ucsb/cs156/frontiers/enums/PullRequestCreationPolicy::getGithubValue → KILLED
    return githubValue;
22
  }
23
}

Mutations

21

1.1
Location : getGithubValue
Killed by : edu.ucsb.cs156.frontiers.services.RepositoryServiceTests.[engine:junit-jupiter]/[class:edu.ucsb.cs156.frontiers.services.RepositoryServiceTests]/[method:PullRequestCreationPolicy_uses_the_values_github_expects()]
replaced return value with "" for edu/ucsb/cs156/frontiers/enums/PullRequestCreationPolicy::getGithubValue → KILLED

Active mutators

Tests examined


Report generated by PIT 1.30.0 support