MCPcopy Create free account
hub / github.com/git-lfs/git-lfs / getFileInputReader

Method getFileInputReader

t/cmd/util/testutils.go:327–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

325}
326
327func (infile *FileInput) getFileInputReader() io.Reader {
328 if infile.DataReader != nil {
329 return infile.DataReader
330 }
331
332 if len(infile.Data) > 0 {
333 return strings.NewReader(infile.Data)
334 }
335
336 // Different data for each file but deterministic
337 return NewPlaceholderDataReader(fileInputSeed.Int63(), infile.Size)
338}
339
340// Input for defining commits for test repo
341type CommitInput struct {

Callers 1

AddToIndexMethod · 0.95

Calls 1

NewPlaceholderDataReaderFunction · 0.85

Tested by

no test coverage detected