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

Method TestExtend

processing/extend_test.go:133–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133func (s *ExtendTestSuite) TestExtend() {
134 extendSize := testSize{500, 500}
135
136 //nolint:dupl
137 testCases := []testCase[extendTestCase]{
138 {
139 opts: extendTestCase{
140 gravity: processing.GravityCenter,
141 size: extendSize,
142 },
143 outSize: extendSize,
144 },
145 {
146 opts: extendTestCase{
147 gravity: processing.GravityNorth,
148 size: extendSize,
149 },
150 outSize: extendSize,
151 },
152 {
153 opts: extendTestCase{
154 gravity: processing.GravitySouth,
155 size: extendSize,
156 },
157 outSize: extendSize,
158 },
159 {
160 opts: extendTestCase{
161 gravity: processing.GravityEast,
162 size: extendSize,
163 },
164 outSize: extendSize,
165 },
166 {
167 opts: extendTestCase{
168 gravity: processing.GravityWest,
169 size: extendSize,
170 },
171 outSize: extendSize,
172 },
173 {
174 opts: extendTestCase{
175 gravity: processing.GravityNorthEast,
176 size: extendSize,
177 },
178 outSize: extendSize,
179 },
180 {
181 opts: extendTestCase{
182 gravity: processing.GravitySouthEast,
183 size: extendSize,
184 },
185 outSize: extendSize,
186 },
187 {
188 opts: extendTestCase{
189 gravity: processing.GravitySouthWest,
190 size: extendSize,

Callers

nothing calls this directly

Calls 3

RunMethod · 0.80
processImageAndCheckMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected