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

Method Path

testutil/test_data_provider.go:75–78  ·  view source on GitHub ↗

Path returns the absolute path to a file in the testdata directory

(parts ...string)

Source from the content-addressed store, hash-verified

73
74// Path returns the absolute path to a file in the testdata directory
75func (p *TestDataProvider) Path(parts ...string) string {
76 allParts := append([]string{p.path}, parts...)
77 return filepath.Join(allParts...)
78}
79
80// Read reads a test data file and returns it as bytes
81func (p *TestDataProvider) Read(name string) []byte {

Callers 6

ReadMethod · 0.95
TestParseExistingFileFunction · 0.95
NewImageHashCacheMatcherFunction · 0.80
SetupTestMethod · 0.80
SetupSubTestMethod · 0.80
runTestCaseMethod · 0.80

Calls

no outgoing calls

Tested by 4

TestParseExistingFileFunction · 0.76
SetupTestMethod · 0.64
SetupSubTestMethod · 0.64
runTestCaseMethod · 0.64