Node.java

1
/*
2
 * Copyright OpenSearch Contributors
3
 * SPDX-License-Identifier: Apache-2.0
4
 */
5
6
7
package org.opensearch.sql.ast;
8
9
import java.util.List;
10
import lombok.EqualsAndHashCode;
11
import lombok.ToString;
12
13
/**
14
 * AST node.
15
 */
16
@EqualsAndHashCode
17
@ToString
18
public abstract class Node {
19
20
  public <R, C> R accept(AbstractNodeVisitor<R, C> visitor, C context) {
21 1 1. accept : replaced return value with null for org/opensearch/sql/ast/Node::accept → NO_COVERAGE
    return visitor.visitChildren(this, context);
22
  }
23
24
  public List<? extends Node> getChild() {
25 1 1. getChild : replaced return value with Collections.emptyList for org/opensearch/sql/ast/Node::getChild → NO_COVERAGE
    return null;
26
  }
27
}

Mutations

21

1.1
Location : accept
Killed by : none
replaced return value with null for org/opensearch/sql/ast/Node::accept → NO_COVERAGE

25

1.1
Location : getChild
Killed by : none
replaced return value with Collections.emptyList for org/opensearch/sql/ast/Node::getChild → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.9.0