MCPcopy Create free account
hub / github.com/akalin/gopar / ReadFile

Method ReadFile

par2/decoder_test.go:86–93  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

84}
85
86func (io testFileIO) ReadFile(path string) (data []byte, err error) {
87 io.t.Helper()
88 defer func() {
89 io.t.Helper()
90 io.t.Logf("ReadFile(%s) => (%d bytes, %v)", path, len(data), err)
91 }()
92 return io.fileIO.ReadFile(path)
93}
94
95func (io testFileIO) FindWithPrefixAndSuffix(prefix, suffix string) (matches []string, err error) {
96 io.t.Helper()

Callers

nothing calls this directly

Calls 1

ReadFileMethod · 0.65

Tested by

no test coverage detected