MCPcopy Index your code
hub / github.com/coder/coder / readBytesFromZip

Function readBytesFromZip

cli/support_test.go:460–467  ·  view source on GitHub ↗
(t *testing.T, f *zip.File)

Source from the content-addressed store, hash-verified

458}
459
460func readBytesFromZip(t *testing.T, f *zip.File) []byte {
461 t.Helper()
462 rc, err := f.Open()
463 require.NoError(t, err, "open file from zip")
464 bs, err := io.ReadAll(rc)
465 require.NoError(t, err, "read bytes from zip")
466 return bs
467}
468
469func assertDoesNotContain(t *testing.T, f *zip.File, vals ...string) {
470 t.Helper()

Callers 2

assertBundleContentsFunction · 0.85
assertDoesNotContainFunction · 0.85

Calls 3

HelperMethod · 0.65
OpenMethod · 0.45
ReadAllMethod · 0.45

Tested by

no test coverage detected