MCPcopy
hub / github.com/cloudfoundry/cli / readFile

Function readFile

cf/appfiles/zipper_test.go:22–26  ·  view source on GitHub ↗
(file *os.File)

Source from the content-addressed store, hash-verified

20)
21
22func readFile(file *os.File) []byte {
23 bytes, err := ioutil.ReadAll(file)
24 Expect(err).NotTo(HaveOccurred())
25 return bytes
26}
27
28// Thanks to Svett Ralchev
29// http://blog.ralch.com/tutorial/golang-working-with-zip/

Callers 1

zipper_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected