MCPcopy
hub / github.com/hyperledger/fabric / readFile

Function readFile

protoutil/signeddata_test.go:163–169  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

161}
162
163func readFile(file string) ([]byte, error) {
164 fileCont, err := os.ReadFile(file)
165 if err != nil {
166 return nil, errors.Wrapf(err, "could not read file %s", file)
167 }
168 return fileCont, nil
169}
170
171func readPemFile(file string) ([]byte, error) {
172 bytes, err := readFile(file)

Callers 1

readPemFileFunction · 0.70

Calls 1

ReadFileMethod · 0.65

Tested by

no test coverage detected