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

Function TestViewRun

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

Source from the content-addressed store, hash-verified

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

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