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

Method readTestFile

processing/svg/svg_test.go:29–32  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

27}
28
29func (s *SvgTestSuite) readTestFile(name string) imagedata.ImageData {
30 data := s.testData.Read(name)
31 return imagedata.NewFromBytesWithFormat(imagetype.SVG, data)
32}
33
34func (s *SvgTestSuite) compare(expected, actual imagedata.ImageData) {
35 expectedData, err := io.ReadAll(expected.Reader())

Callers 1

TestSanitizeMethod · 0.95

Calls 2

NewFromBytesWithFormatFunction · 0.92
ReadMethod · 0.45

Tested by

no test coverage detected