|
1
|
|
package com.github.dakusui.actionunit.actions.cmd; |
|
2
|
|
|
|
3
|
|
import com.github.dakusui.actionunit.actions.cmd.unix.*; |
|
4
|
|
|
|
5
|
|
import java.util.function.Function; |
|
6
|
|
|
|
7
|
|
public interface UnixCommanderFactory extends CommanderFactory { |
|
8
|
|
|
|
9
|
|
static UnixCommanderFactory create(ShellManager manager) { |
|
10
|
1
1. create : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::create → KILLED
|
return create(CommanderConfig.builder() |
|
11
|
|
.shellManager(manager) |
|
12
|
|
.sshOptionsResolver(manager::sshOptionsFor) |
|
13
|
|
.build()); |
|
14
|
|
} |
|
15
|
|
|
|
16
|
|
static UnixCommanderFactory create(CommanderConfig commanderConfig) { |
|
17
|
1
1. create : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::create → KILLED
|
return new Builder() |
|
18
|
|
.config(commanderConfig) |
|
19
|
|
.build(); |
|
20
|
|
} |
|
21
|
|
|
|
22
|
|
default Echo echo() { |
|
23
|
1
1. echo : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::echo → KILLED
|
return new Echo(config()); |
|
24
|
|
} |
|
25
|
|
|
|
26
|
|
default Cat cat() { |
|
27
|
1
1. cat : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::cat → KILLED
|
return new Cat(config()); |
|
28
|
|
} |
|
29
|
|
|
|
30
|
|
default Ls ls() { |
|
31
|
1
1. ls : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::ls → KILLED
|
return new Ls(config()); |
|
32
|
|
} |
|
33
|
|
|
|
34
|
|
default Mkdir mkdir() { |
|
35
|
1
1. mkdir : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::mkdir → KILLED
|
return new Mkdir(config()); |
|
36
|
|
} |
|
37
|
|
|
|
38
|
|
default Rm rm() { |
|
39
|
1
1. rm : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::rm → KILLED
|
return new Rm(config()); |
|
40
|
|
} |
|
41
|
|
|
|
42
|
|
default Touch touch() { |
|
43
|
1
1. touch : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::touch → KILLED
|
return new Touch(config()); |
|
44
|
|
} |
|
45
|
|
|
|
46
|
|
default Scp scp() { |
|
47
|
1
1. scp : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::scp → KILLED
|
return new Scp(config()); |
|
48
|
|
} |
|
49
|
|
|
|
50
|
|
default Curl curl() { |
|
51
|
1
1. curl : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::curl → KILLED
|
return new Curl(config()); |
|
52
|
|
} |
|
53
|
|
|
|
54
|
|
default Git git() { |
|
55
|
1
1. git : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::git → KILLED
|
return new Git.Builder().build(); |
|
56
|
|
} |
|
57
|
|
|
|
58
|
|
default Cmd cmd() { |
|
59
|
1
1. cmd : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::cmd → NO_COVERAGE
|
return new Cmd(config()); |
|
60
|
|
} |
|
61
|
|
|
|
62
|
|
class Impl extends CommanderFactory.Base implements UnixCommanderFactory { |
|
63
|
|
protected Impl(CommanderConfig commanderConfig) { |
|
64
|
|
super(commanderConfig); |
|
65
|
|
} |
|
66
|
|
} |
|
67
|
|
|
|
68
|
|
class Builder extends CommanderFactory.Builder<Builder, UnixCommanderFactory> { |
|
69
|
|
|
|
70
|
|
@Override |
|
71
|
|
protected UnixCommanderFactory createCommanderFactory(CommanderConfig config, Function<String, SshOptions> sshOptionsResolver) { |
|
72
|
1
1. createCommanderFactory : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory$Builder::createCommanderFactory → KILLED
|
return new Impl(config); |
|
73
|
|
} |
|
74
|
|
} |
|
75
|
|
} |
| | Mutations |
| 10 |
|
1.1 Location : create 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/UnixCommanderFactory::create → KILLED
|
| 17 |
|
1.1 Location : create 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/UnixCommanderFactory::create → KILLED
|
| 23 |
|
1.1 Location : echo 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/UnixCommanderFactory::echo → KILLED
|
| 27 |
|
1.1 Location : cat Killed by : com.github.dakusui.actionunit.ut.actions.cmd.linux.BasicCommanderTest.testDescribeMethod(com.github.dakusui.actionunit.ut.actions.cmd.linux.BasicCommanderTest) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::cat → KILLED
|
| 31 |
|
1.1 Location : ls Killed by : com.github.dakusui.actionunit.ut.actions.cmd.linux.LsTest.givenNormalAndHiddenFiles$whenLsWithContextFunction$thenNormalFileIsListed(com.github.dakusui.actionunit.ut.actions.cmd.linux.LsTest) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::ls → KILLED
|
| 35 |
|
1.1 Location : mkdir Killed by : com.github.dakusui.actionunit.ut.actions.cmd.linux.MkdirTest.whenMkdirUsingString$thenDirectoryCreated(com.github.dakusui.actionunit.ut.actions.cmd.linux.MkdirTest) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::mkdir → KILLED
|
| 39 |
|
1.1 Location : rm Killed by : com.github.dakusui.actionunit.ut.actions.cmd.linux.RmTest.givenExistingFile$whenRm$thenRemoved(com.github.dakusui.actionunit.ut.actions.cmd.linux.RmTest) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::rm → KILLED
|
| 43 |
|
1.1 Location : touch Killed by : com.github.dakusui.actionunit.ut.actions.cmd.linux.TouchTest.givenNonExistingFile$whenTouch$thenComesToExist(com.github.dakusui.actionunit.ut.actions.cmd.linux.TouchTest) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::touch → KILLED
|
| 47 |
|
1.1 Location : scp Killed by : com.github.dakusui.actionunit.ut.actions.cmd.UnixCommanderFactoryTest$WithCustomSshOptions2.composeLocalScpCommandLine(com.github.dakusui.actionunit.ut.actions.cmd.UnixCommanderFactoryTest$WithCustomSshOptions2) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::scp → KILLED
|
| 51 |
|
1.1 Location : curl Killed by : com.github.dakusui.actionunit.ut.actions.cmd.linux.CurlTest.test6(com.github.dakusui.actionunit.ut.actions.cmd.linux.CurlTest) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::curl → KILLED
|
| 55 |
|
1.1 Location : git Killed by : com.github.dakusui.actionunit.ut.actions.cmd.linux.GitTest$ForPlain.givenRepoAndSpecWithFunction$whenFormat$thenCommandLineFormatIsCorrect(com.github.dakusui.actionunit.ut.actions.cmd.linux.GitTest$ForPlain) replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::git → KILLED
|
| 59 |
|
1.1 Location : cmd Killed by : none replaced return value with null for com/github/dakusui/actionunit/actions/cmd/UnixCommanderFactory::cmd → NO_COVERAGE
|
| 72 |
|
1.1 Location : createCommanderFactory 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/UnixCommanderFactory$Builder::createCommanderFactory → KILLED
|