Argument.java

1
/*
2
 * Copyright OpenSearch Contributors
3
 * SPDX-License-Identifier: Apache-2.0
4
 */
5
6
7
package org.opensearch.sql.ast.expression;
8
9
import java.util.Arrays;
10
import java.util.List;
11
import lombok.EqualsAndHashCode;
12
import lombok.Getter;
13
import lombok.RequiredArgsConstructor;
14
import lombok.ToString;
15
import org.opensearch.sql.ast.AbstractNodeVisitor;
16
17
/**
18
 * Argument.
19
 */
20
@Getter
21
@ToString
22
@RequiredArgsConstructor
23
@EqualsAndHashCode(callSuper = false)
24
public class Argument extends UnresolvedExpression {
25
  private final String argName;
26
  private final Literal value;
27
28
  //    private final DataType valueType;
29
  @Override
30
  public List<UnresolvedExpression> getChild() {
31 1 1. getChild : replaced return value with Collections.emptyList for org/opensearch/sql/ast/expression/Argument::getChild → NO_COVERAGE
    return Arrays.asList(value);
32
  }
33
34
  @Override
35
  public <R, C> R accept(AbstractNodeVisitor<R, C> nodeVisitor, C context) {
36 1 1. accept : replaced return value with null for org/opensearch/sql/ast/expression/Argument::accept → NO_COVERAGE
    return nodeVisitor.visitArgument(this, context);
37
  }
38
}

Mutations

31

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

36

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

Active mutators

Tests examined


Report generated by PIT 1.9.0