mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 21:52:01 +08:00
TestGoOrigin instead of TestgoOrigin
This commit is contained in:
parent
cfe84bf67c
commit
8970e8cf52
@ -58,7 +58,18 @@ func TestGenWebpAbs(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestgoOrigin(t *testing.T) {
|
func TestGenEtag(t *testing.T) {
|
||||||
|
var data = "./pics/png.jpg"
|
||||||
|
var expected = "W/\"1020764-262C0329\""
|
||||||
|
var result = GenEtag(data)
|
||||||
|
|
||||||
|
if result != expected {
|
||||||
|
t.Errorf("Result: [%s], Expected: [%s]", result, expected)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
func TestGoOrigin(t *testing.T) {
|
||||||
// reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox
|
// reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox
|
||||||
// https://developer.chrome.com/multidevice/user-agent#chrome_for_ios_user_agent
|
// https://developer.chrome.com/multidevice/user-agent#chrome_for_ios_user_agent
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user