MCPcopy Index your code
hub / github.com/cli/cli / createZipReader

Function createZipReader

pkg/cmd/run/view/logs_test.go:517–524  ·  view source on GitHub ↗
(t *testing.T, files map[string]string)

Source from the content-addressed store, hash-verified

515}
516
517func createZipReader(t *testing.T, files map[string]string) *zip.Reader {
518 raw := createZipArchive(t, files)
519
520 zr, err := zip.NewReader(bytes.NewReader(raw), int64(len(raw)))
521 assert.NoError(t, err)
522
523 return zr
524}
525
526func createZipArchive(t *testing.T, files map[string]string) []byte {
527 buf := bytes.NewBuffer(nil)

Callers 2

TestZipLogFetcherFunction · 0.85
TestGetZipLogMapFunction · 0.85

Calls 1

createZipArchiveFunction · 0.85

Tested by

no test coverage detected