aboutsummaryrefslogtreecommitdiff
path: root/awwan_sudo_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-11-16 22:59:22 +0700
committerShulhan <ms@kilabit.info>2023-11-16 22:59:22 +0700
commit4c17c972104e2dc50dbee4138c992f620e7f10bd (patch)
tree49b73e28694857fb490dccda035214f11f5047f0 /awwan_sudo_test.go
parentf2b71ae4bf9d264d5c6ea51edc2d402e462e2033 (diff)
downloadawwan-4c17c972104e2dc50dbee4138c992f620e7f10bd.tar.xz
all: refactoring, rename Request to ExecRequest
Diffstat (limited to 'awwan_sudo_test.go')
-rw-r--r--awwan_sudo_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/awwan_sudo_test.go b/awwan_sudo_test.go
index d73fe09..cc7bcc3 100644
--- a/awwan_sudo_test.go
+++ b/awwan_sudo_test.go
@@ -87,7 +87,7 @@ func TestAwwan_Local_SudoGet(t *testing.T) {
script = filepath.Join(baseDir, `get.aww`)
mockin = &mockStdin{}
- req *Request
+ req *ExecRequest
c testCase
gotContent []byte
)
@@ -95,7 +95,7 @@ func TestAwwan_Local_SudoGet(t *testing.T) {
for _, c = range cases {
t.Log(c.desc)
- req, err = NewRequest(CommandModeLocal, script, c.lineRange)
+ req, err = NewExecRequest(CommandModeLocal, script, c.lineRange)
if err != nil {
t.Fatal(err)
}
@@ -184,7 +184,7 @@ func TestAwwan_Local_SudoPut(t *testing.T) {
mockTerm = mock.ReadWriter{}
aww *Awwan
- req *Request
+ req *ExecRequest
c testCase
gotContent []byte
)
@@ -205,7 +205,7 @@ func TestAwwan_Local_SudoPut(t *testing.T) {
_ = os.Remove(c.fileDest)
}
- req, err = NewRequest(CommandModeLocal, script, c.lineRange)
+ req, err = NewExecRequest(CommandModeLocal, script, c.lineRange)
if err != nil {
t.Fatal(err)
}