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

Method Read

testutil/test_data_provider.go:81–87  ·  view source on GitHub ↗

Read reads a test data file and returns it as bytes

(name string)

Source from the content-addressed store, hash-verified

79
80// Read reads a test data file and returns it as bytes
81func (p *TestDataProvider) Read(name string) []byte {
82 p.t().Helper()
83
84 data, err := os.ReadFile(p.Path(name))
85 require.NoError(p.t(), err)
86 return data
87}
88
89// Reader reads a test data file and returns it as imagedata.ImageData
90func (p *TestDataProvider) Reader(name string) *bytes.Reader {

Callers 3

ReaderMethod · 0.95
LoadImageHashFunction · 0.45
loadDctHashMethod · 0.45

Calls 1

PathMethod · 0.95

Tested by

no test coverage detected