MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Reader

Method Reader

testutil/test_data_provider.go:90–92  ·  view source on GitHub ↗

Reader reads a test data file and returns it as imagedata.ImageData

(name string)

Source from the content-addressed store, hash-verified

88
89// Reader reads a test data file and returns it as imagedata.ImageData
90func (p *TestDataProvider) Reader(name string) *bytes.Reader {
91 return bytes.NewReader(p.Read(name))
92}
93
94// FileEqualsToReader compares the contents of a test data file with the contents of the given reader
95func (p *TestDataProvider) FileEqualsToReader(name string, reader io.Reader) bool {

Callers 1

FileEqualsToReaderMethod · 0.95

Calls 1

ReadMethod · 0.95

Tested by

no test coverage detected