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

Method String

processing/extend_test.go:113–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111}
112
113func (e extendArTestCase) String() string {
114 var b strings.Builder
115
116 fmt.Fprintf(&b, "extendAr_%dx%d", e.size.width, e.size.height)
117
118 if e.gravity != 0 {
119 fmt.Fprintf(&b, "_gravity_%s", e.gravity.String())
120 }
121
122 if e.xOffset != 0 || e.yOffset != 0 {
123 fmt.Fprintf(&b, "_offset_%f_%f", e.xOffset, e.yOffset)
124 }
125
126 if e.dpr > 0 {
127 fmt.Fprintf(&b, "_dpr_%g", e.dpr)
128 }
129
130 return b.String()
131}
132
133func (s *ExtendTestSuite) TestExtend() {
134 extendSize := testSize{500, 500}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected