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

Method FileEqualsToReader

testutil/test_data_provider.go:95–98  ·  view source on GitHub ↗

FileEqualsToReader compares the contents of a test data file with the contents of the given reader

(name string, reader io.Reader)

Source from the content-addressed store, hash-verified

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 {
96 expected := p.Reader(name)
97 return ReadersEqual(p.t(), expected, reader)
98}

Calls 2

ReaderMethod · 0.95
ReadersEqualFunction · 0.85

Tested by 7

TestSkipProcessingPOMethod · 0.64
TestRawOptionMethod · 0.64
TestPresetUsageMethod · 0.64