()
| 28 | } |
| 29 | |
| 30 | func (c flattenTestCase) URLOptions() string { |
| 31 | opts := testutil.NewOptionsBuilder() |
| 32 | |
| 33 | opts.Add("resize").Set(0, "fill").Set(1, 300).Set(2, 300) |
| 34 | opts.Add("enlarge").Set(0, 1) |
| 35 | opts.Add("padding").Set(0, 100) |
| 36 | opts.Add("format").Set(0, c.format) |
| 37 | |
| 38 | if c.background != nil { |
| 39 | opts.Add("background"). |
| 40 | Set(0, c.background.R). |
| 41 | Set(1, c.background.G). |
| 42 | Set(2, c.background.B) |
| 43 | } |
| 44 | |
| 45 | return opts.String() |
| 46 | } |
| 47 | |
| 48 | func (s *FlattenTestSuite) TestBackground() { |
| 49 | testCases := []testCase[flattenTestCase]{ |
nothing calls this directly
no test coverage detected