MCPcopy Create free account
hub / github.com/capnspacehook/pandorasbox / ReadFile

Method ReadFile

absfs/filesystem.go:33–33  ·  view source on GitHub ↗

ReadFile reads the named file and returns its contents. A successful call returns a nil error, not io.EOF. (Because ReadFile reads the whole file, the expected EOF from the final Read is not treated as an error to be reported.)

(name string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 10

ReadFileMethod · 0.65
ReadFileFunction · 0.65
ReadFileMethod · 0.65
ReadFileMethod · 0.65
FuzzVFSRaceFunction · 0.65
TestTruncateToLengthFunction · 0.65
TestTruncateToZeroFunction · 0.65
TestRenameFunction · 0.65
TestWriteAtFunction · 0.65
writeFileFunction · 0.65

Implementers 2

pbFSosfs/osfs.go
virtualFSvfs/vfs.go

Calls

no outgoing calls

Tested by 6

FuzzVFSRaceFunction · 0.52
TestTruncateToLengthFunction · 0.52
TestTruncateToZeroFunction · 0.52
TestRenameFunction · 0.52
TestWriteAtFunction · 0.52
writeFileFunction · 0.52