MCPcopy Create free account
hub / github.com/cli/cli / TestViewRun

Function TestViewRun

pkg/cmd/run/view/view_test.go:180–2708  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

178}
179
180func TestViewRun(t *testing.T) {
181 emptyZipArchive := createZipArchive(t, map[string]string{})
182 zipArchive := createZipArchive(t, map[string]string{
183 "0_cool job.txt": heredoc.Doc(`
184 log line 1
185 log line 2
186 log line 3
187 log line 1
188 log line 2
189 log line 3`),
190 "cool job/1_fob the barz.txt": heredoc.Doc(`
191 log line 1
192 log line 2
193 log line 3
194 `),
195 "cool job/2_barz the fob.txt": heredoc.Doc(`
196 log line 1
197 log line 2
198 log line 3
199 `),
200 "1_sad job.txt": heredoc.Doc(`
201 log line 1
202 log line 2
203 log line 3
204 log line 1
205 log line 2
206 log line 3
207 `),
208 "sad job/1_barf the quux.txt": heredoc.Doc(`
209 log line 1
210 log line 2
211 log line 3
212 `),
213 "sad job/2_quuz the barf.txt": heredoc.Doc(`
214 log line 1
215 log line 2
216 log line 3
217 `),
218 "2_cool job with no step logs.txt": heredoc.Doc(`
219 log line 1
220 log line 2
221 log line 3
222 `),
223 "3_sad job with no step logs.txt": heredoc.Doc(`
224 log line 1
225 log line 2
226 log line 3
227 `),
228 "-9999999999_legacy cool job with no step logs.txt": heredoc.Doc(`
229 log line 1
230 log line 2
231 log line 3
232 `),
233 "-9999999999_legacy sad job with no step logs.txt": heredoc.Doc(`
234 log line 1
235 log line 2
236 log line 3
237 `),

Callers

nothing calls this directly

Calls 15

RegisterMethod · 0.95
BrowsedURLMethod · 0.95
VerifyMethod · 0.95
RESTFunction · 0.92
JSONResponseFunction · 0.92
StringResponseFunction · 0.92
GraphQLFunction · 0.92
IndexForFunction · 0.92
BinaryResponseFunction · 0.92
QueryMatcherFunction · 0.92
WithHeaderFunction · 0.92
StatusStringResponseFunction · 0.92

Tested by

no test coverage detected