Help.java

1
package com.github.dakusui.symfonion.cli.subcommands;
2
3
import com.github.dakusui.symfonion.cli.Cli;
4
import com.github.dakusui.symfonion.cli.Subcommand;
5
import org.apache.commons.cli.HelpFormatter;
6
7
import java.io.InputStream;
8
import java.io.PrintStream;
9
10
/**
11
<<<<<<< Updated upstream
12
 * A subcommand that shows a help message of the CLI.
13
=======
14
 * A "help" subcommand
15
>>>>>>> Stashed changes
16
 */
17
public class Help implements Subcommand {
18
  /**
19
   * Creates an object of this class.
20
   */
21
  public Help() {
22
  }
23
24
  @Override
25
  public void invoke(Cli cli, PrintStream ps, InputStream inputStream) {
26
    HelpFormatter formatter = new HelpFormatter();
27 1 1. invoke : removed call to org/apache/commons/cli/HelpFormatter::printHelp → KILLED
    formatter.printHelp("SYNTAX", cli.options());
28
  }
29
}

Mutations

27

1.1
Location : invoke
Killed by : com.github.dakusui.symfonion.tests.cli.subcommands.HelpTest.[engine:junit-jupiter]/[class:com.github.dakusui.symfonion.tests.cli.subcommands.HelpTest]/[method:whenHelp_thenLooksOk()]
removed call to org/apache/commons/cli/HelpFormatter::printHelp → KILLED

Active mutators

Tests examined


Report generated by PIT 1.19.1