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 |
|
20 |
1.1 |
|
24 |
1.1 |
|
28 |
1.1 |
|
32 |
1.1 |