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 Touch extends Commander<Touch> { | |
13 | public Touch(CommanderConfig initializer) { | |
14 | super(initializer, "touch"); | |
15 | } | |
16 | ||
17 | public Touch noCreate() { | |
18 |
1
1. noCreate : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Touch::noCreate → KILLED |
return this.addOption("-c"); |
19 | } | |
20 | ||
21 | public Touch file(String file) { | |
22 |
1
1. file : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Touch::file → KILLED |
return this.add(file); |
23 | } | |
24 | ||
25 | public Touch file(File file) { | |
26 |
1
1. file : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Touch::file → NO_COVERAGE |
return this.file(requireNonNull(file).getAbsolutePath()); |
27 | } | |
28 | ||
29 | public Touch file(Function<Context, String> file) { | |
30 |
1
1. file : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Touch::file → NO_COVERAGE |
return this.add(requireNonNull(file)); |
31 | } | |
32 | } | |
Mutations | ||
18 |
1.1 |
|
22 |
1.1 |
|
26 |
1.1 |
|
30 |
1.1 |