MCPcopy
hub / github.com/perkeep/perkeep / newFakeFile

Function newFakeFile

pkg/test/integration/upload_test.go:39–41  ·  view source on GitHub ↗
(name, content string, modTime time.Time)

Source from the content-addressed store, hash-verified

37}
38
39func newFakeFile(name, content string, modTime time.Time) *fakeFile {
40 return &fakeFile{name, int64(len(content)), modTime, content}
41}
42
43func (f *fakeFile) Name() string { return f.name }
44func (f *fakeFile) Size() int64 { return f.size }

Callers 1

TestUploadFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected