diff --git a/.drone.yml b/.drone.yml index a9ede79..263a8b9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,7 @@ steps: - name: test image: golang commands: - - go test + - go test -v environment: IMGUR_CLIENT_ID: from_secret: imgur_client_id \ No newline at end of file diff --git a/default_test.go b/default_test.go index 3898c62..2ffadfe 100644 --- a/default_test.go +++ b/default_test.go @@ -5,7 +5,7 @@ import ( "testing" ) -func Test_LinkInfoApi_detectContentType(t *testing.T) { +func TestLinkInfoApi_detectContentType(t *testing.T) { api := New() contentType := api.detectContentType("http://example.com", "") @@ -23,7 +23,7 @@ func Test_LinkInfoApi_detectContentType(t *testing.T) { } } -func Test_LinkInfoApi_defaultLinkHandler(t *testing.T) { +func TestLinkInfoApi_defaultLinkHandler(t *testing.T) { type expectedData struct { Link string Title string @@ -54,7 +54,7 @@ func Test_LinkInfoApi_defaultLinkHandler(t *testing.T) { } } -func Test_LinkInfoApi_retrieveHtmlLinkTitle(t *testing.T) { +func TestLinkInfoApi_retrieveHtmlLinkTitle(t *testing.T) { ret := &LinkInfo{} api := New()