AlwaysHealthyMonitor.java

1
/*
2
 * Copyright OpenSearch Contributors
3
 * SPDX-License-Identifier: Apache-2.0
4
 */
5
6
7
package org.opensearch.sql.monitor;
8
9
/**
10
 * Always healthy resource monitor.
11
 */
12
public class AlwaysHealthyMonitor extends ResourceMonitor {
13
  public static final ResourceMonitor ALWAYS_HEALTHY_MONITOR =
14
      new AlwaysHealthyMonitor();
15
16
  /**
17
   * always healthy.
18
   */
19
  @Override
20
  public boolean isHealthy() {
21 1 1. isHealthy : replaced boolean return with false for org/opensearch/sql/monitor/AlwaysHealthyMonitor::isHealthy → KILLED
    return true;
22
  }
23
}

Mutations

21

1.1
Location : isHealthy
Killed by : org.opensearch.sql.monitor.AlwaysHealthyMonitorTest.[engine:junit-jupiter]/[class:org.opensearch.sql.monitor.AlwaysHealthyMonitorTest]/[method:isHealthy()]
replaced boolean return with false for org/opensearch/sql/monitor/AlwaysHealthyMonitor::isHealthy → KILLED

Active mutators

Tests examined


Report generated by PIT 1.9.0