MCPcopy
hub / github.com/gopherjs/gopherjs / newFakeFile

Function newFakeFile

tool.go:802–804  ·  view source on GitHub ↗
(name string, content []byte)

Source from the content-addressed store, hash-verified

800}
801
802func newFakeFile(name string, content []byte) *fakeFile {
803 return &fakeFile{name: name, size: len(content), ReadSeeker: bytes.NewReader(content)}
804}
805
806func (f *fakeFile) Close() error {
807 return nil

Callers 1

OpenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…