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 |
|
17 |
1.1 |
|
23 |
1.1 |
|
27 |
1.1 |
|
31 |
1.1 |
|
35 |
1.1 |
|
39 |
1.1 |
|
43 |
1.1 |
|
47 |
1.1 |
|
51 |
1.1 |
|
55 |
1.1 |
|
59 |
1.1 |
|
72 |
1.1 |