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

Method URLOptions

processing/rotate_and_flip_test.go:29–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func (r rotateAndFlipTestCase) URLOptions() string {
30 opts := testutil.NewOptionsBuilder()
31
32 if r.rotate != 0 {
33 opts.Add("rotate").Set(0, r.rotate)
34 }
35
36 if r.flipH {
37 opts.Add("flip").Set(0, 1)
38 }
39 if r.flipV {
40 opts.Add("flip").Set(1, 1)
41 }
42
43 if !r.autoRotate {
44 opts.Add("auto_rotate").Set(0, 0)
45 }
46
47 return opts.String()
48}
49
50func (s *RotateAndFlipTestSuite) processImg(
51 imgIndex int,

Callers

nothing calls this directly

Calls 4

AddMethod · 0.95
StringMethod · 0.95
NewOptionsBuilderFunction · 0.92
SetMethod · 0.45

Tested by

no test coverage detected