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

Method ReadFile

par1/decoder_test.go:22–29  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

20}
21
22func (io testFileIO) ReadFile(path string) (data []byte, err error) {
23 io.t.Helper()
24 defer func() {
25 io.t.Helper()
26 io.t.Logf("ReadFile(%s) => (%d bytes, %v)", path, len(data), err)
27 }()
28 return io.fileIO.ReadFile(path)
29}
30
31func (io testFileIO) WriteFile(path string, data []byte) (err error) {
32 io.t.Helper()

Callers

nothing calls this directly

Calls 1

ReadFileMethod · 0.65

Tested by

no test coverage detected