Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit f82d56d

Browse files
committed
Renamed executors
1 parent 92d1ac2 commit f82d56d

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

internal/executor/executor_test.go

+15-15
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
6464
}
6565
tmpDirToRestore := os.Getenv("TMPDIR")
6666
_ = os.Setenv("TMPDIR", "/tmp")
67-
e := &Executor{}
68-
ePreCreate := &Executor{}
69-
ePreCreate.SetPreCreatedWorkingDir("/tmp/precreated-build")
67+
executorDefault := &Executor{}
68+
executorPreCreated := &Executor{}
69+
executorPreCreated.SetPreCreatedWorkingDir("/tmp/precreated-build")
7070
examples := []struct {
7171
Executor *Executor
7272
Description string
7373
Given, Expected map[string]string
7474
}{
7575
{
76-
e,
76+
executorDefault,
7777
"empty",
7878
map[string]string{},
7979
map[string]string{
@@ -82,7 +82,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
8282
},
8383
},
8484
{
85-
ePreCreate,
85+
executorPreCreated,
8686
"empty (precreated)",
8787
map[string]string{},
8888
map[string]string{
@@ -91,7 +91,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
9191
},
9292
},
9393
{
94-
e,
94+
executorDefault,
9595
"only working",
9696
map[string]string{
9797
"CIRRUS_WORKING_DIR": "/tmp/foo",
@@ -102,7 +102,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
102102
},
103103
},
104104
{
105-
ePreCreate,
105+
executorPreCreated,
106106
"only working (precreated)",
107107
map[string]string{
108108
"CIRRUS_WORKING_DIR": "/tmp/foo",
@@ -113,7 +113,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
113113
},
114114
},
115115
{
116-
e,
116+
executorDefault,
117117
"only working (monorepo)",
118118
map[string]string{
119119
"CIRRUS_WORKING_DIR": "$CIRRUS_CLONE_DIR/foo",
@@ -124,7 +124,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
124124
},
125125
},
126126
{
127-
ePreCreate,
127+
executorPreCreated,
128128
"only working (monorepo + precreated)",
129129
map[string]string{
130130
"CIRRUS_WORKING_DIR": "$CIRRUS_CLONE_DIR/foo",
@@ -135,7 +135,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
135135
},
136136
},
137137
{
138-
e,
138+
executorDefault,
139139
"only clone",
140140
map[string]string{
141141
"CIRRUS_CLONE_DIR": "/tmp/foo",
@@ -146,7 +146,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
146146
},
147147
},
148148
{
149-
ePreCreate,
149+
executorPreCreated,
150150
"only clone (precreated)",
151151
map[string]string{
152152
"CIRRUS_CLONE_DIR": "/tmp/foo",
@@ -157,7 +157,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
157157
},
158158
},
159159
{
160-
e,
160+
executorDefault,
161161
"both",
162162
map[string]string{
163163
"CIRRUS_CLONE_DIR": "/tmp/foo",
@@ -169,7 +169,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
169169
},
170170
},
171171
{
172-
ePreCreate,
172+
executorPreCreated,
173173
"both (precreated)",
174174
map[string]string{
175175
"CIRRUS_CLONE_DIR": "/tmp/foo",
@@ -181,7 +181,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
181181
},
182182
},
183183
{
184-
e,
184+
executorDefault,
185185
"both (monorepo)",
186186
map[string]string{
187187
"CIRRUS_CLONE_DIR": "/tmp/foo",
@@ -193,7 +193,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
193193
},
194194
},
195195
{
196-
ePreCreate,
196+
executorPreCreated,
197197
"both (monorepo + precreated)",
198198
map[string]string{
199199
"CIRRUS_CLONE_DIR": "/tmp/foo",

0 commit comments

Comments
 (0)