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.io.File; | |
8 | import java.util.function.Function; | |
9 | ||
10 | import static java.util.Objects.requireNonNull; | |
11 | ||
12 | public class Rm extends Commander<Rm> { | |
13 | public Rm(CommanderConfig initializer) { | |
14 | super(initializer, "rm"); | |
15 | } | |
16 | ||
17 | public Rm recursive() { | |
18 |
1
1. recursive : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Rm::recursive → KILLED |
return this.addOption("-r"); |
19 | } | |
20 | ||
21 | public Rm force() { | |
22 |
1
1. force : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Rm::force → KILLED |
return this.addOption("-f"); |
23 | } | |
24 | ||
25 | public Rm file(File file) { | |
26 |
1
1. file : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Rm::file → KILLED |
return this.file(requireNonNull(file).getAbsolutePath()); |
27 | } | |
28 | ||
29 | public Rm file(String file) { | |
30 |
1
1. file : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Rm::file → KILLED |
return this.add(file); |
31 | } | |
32 | ||
33 | public Rm file(Function<Context, String> file) { | |
34 |
1
1. file : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Rm::file → NO_COVERAGE |
return this.add(file); |
35 | } | |
36 | } | |
Mutations | ||
18 |
1.1 |
|
22 |
1.1 |
|
26 |
1.1 |
|
30 |
1.1 |
|
34 |
1.1 |