|
1
|
|
package com.github.dakusui.actionunit.actions.cmd.unix; |
|
2
|
|
|
|
3
|
|
import com.github.dakusui.actionunit.actions.cmd.Commander; |
|
4
|
|
import com.github.dakusui.actionunit.actions.cmd.CommanderConfig; |
|
5
|
|
import com.github.dakusui.actionunit.core.Context; |
|
6
|
|
|
|
7
|
|
import java.util.function.Function; |
|
8
|
|
|
|
9
|
|
public class Echo extends Commander<Echo> { |
|
10
|
|
public Echo(CommanderConfig config) { |
|
11
|
|
super(config, "echo"); |
|
12
|
|
} |
|
13
|
|
|
|
14
|
|
|
|
15
|
|
public Echo noTrailingNewLine() { |
|
16
|
1
1. noTrailingNewLine : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Echo::noTrailingNewLine → KILLED
|
return this.append(" ").append("-n"); |
|
17
|
|
} |
|
18
|
|
|
|
19
|
|
public Echo enableBackslashInterpretation() { |
|
20
|
1
1. enableBackslashInterpretation : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Echo::enableBackslashInterpretation → KILLED
|
return this.addOption("-e"); |
|
21
|
|
} |
|
22
|
|
|
|
23
|
|
public Echo disableBackslashInterpretation() { |
|
24
|
1
1. disableBackslashInterpretation : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Echo::disableBackslashInterpretation → KILLED
|
return this.addOption("-E"); |
|
25
|
|
} |
|
26
|
|
|
|
27
|
|
public Echo message(String message) { |
|
28
|
1
1. message : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Echo::message → KILLED
|
return this.add(message); |
|
29
|
|
} |
|
30
|
|
|
|
31
|
|
public Echo message(Function<Context, String> message) { |
|
32
|
1
1. message : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Echo::message → KILLED
|
return this.add(message); |
|
33
|
|
} |
|
34
|
|
} |
| | Mutations |
| 16 |
|
1.1 Location : noTrailingNewLine Killed by : com.github.dakusui.actionunit.ut.actions.cmd.linux.EchoTest.givenEchoHelloWorldAndNewLineWithNoTrailingNewLine$whenPerformAsAction$thenOnlyHelloAndWorldAreWritten(com.github.dakusui.actionunit.ut.actions.cmd.linux.EchoTest) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Echo::noTrailingNewLine → KILLED
|
| 20 |
|
1.1 Location : enableBackslashInterpretation Killed by : com.github.dakusui.actionunit.ut.actions.cmd.linux.EchoTest.givenSingleQuoteAndEscapedNewLineContainingMessage_enablingBackslaceInterpretation$whenPerformAsAction$thenCorrectMessageIsPrinted(com.github.dakusui.actionunit.ut.actions.cmd.linux.EchoTest) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Echo::enableBackslashInterpretation → KILLED
|
| 24 |
|
1.1 Location : disableBackslashInterpretation Killed by : com.github.dakusui.actionunit.ut.actions.cmd.linux.EchoTest.givenSingleQuoteAndNewLineContainingMessage$whenPerformAsAction$thenCorrectMessageIsPrinted(com.github.dakusui.actionunit.ut.actions.cmd.linux.EchoTest) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Echo::disableBackslashInterpretation → KILLED
|
| 28 |
|
1.1 Location : message Killed by : com.github.dakusui.actionunit.ut.actions.cmd.UnixCommanderFactoryTest$WithCustomSshOptions2.composeLocalEchoCommandLine(com.github.dakusui.actionunit.ut.actions.cmd.UnixCommanderFactoryTest$WithCustomSshOptions2) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Echo::message → KILLED
|
| 32 |
|
1.1 Location : message Killed by : com.github.dakusui.actionunit.ut.actions.cmd.linux.EchoTest.givenEchoHelloWorldWithContextFunction$whenPerformAsAction$thenOnlyHelloAndWorldAreWritten(com.github.dakusui.actionunit.ut.actions.cmd.linux.EchoTest) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Echo::message → KILLED
|