From 8970e8cf52a9e9e659ef159b297d423405d41dfc Mon Sep 17 00:00:00 2001 From: Benny Date: Tue, 30 Jun 2020 17:46:02 +0800 Subject: [PATCH] TestGoOrigin instead of TestgoOrigin --- helper_test.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/helper_test.go b/helper_test.go index a3d156f..490f728 100644 --- a/helper_test.go +++ b/helper_test.go @@ -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 // https://developer.chrome.com/multidevice/user-agent#chrome_for_ios_user_agent