mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-29 14:56:25 +02:00
add miscellaneous tests
also fix minor bug in detecting content type for content less than 512 bytes.
This commit is contained in:
parent
6975320eb4
commit
a7a8966289
4 changed files with 33 additions and 3 deletions
|
|
@ -44,8 +44,8 @@ func TestOptions_String(t *testing.T) {
|
|||
"0.15x1.3,cx100,cy200,q95,r45,sc0ffee",
|
||||
},
|
||||
{
|
||||
Options{0.15, 1.3, false, 45, false, false, 95, "c0ffee", false, "png", 100, 200, 300, 400, false},
|
||||
"0.15x1.3,ch400,cw300,cx100,cy200,png,q95,r45,sc0ffee",
|
||||
Options{0.15, 1.3, false, 45, false, false, 95, "c0ffee", true, "png", 100, 200, 300, 400, true},
|
||||
"0.15x1.3,ch400,cw300,cx100,cy200,png,q95,r45,sc,sc0ffee,scaleUp",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue