MCPcopy
hub / github.com/cli/cli / TestViewRun

Function TestViewRun

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

Source from the content-addressed store, hash-verified

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

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