Correct test names for default_test, add verbose flag to go test
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tyler 2019-10-03 23:32:56 -04:00
parent 137e18e6c1
commit ef026cf138
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ steps:
- name: test - name: test
image: golang image: golang
commands: commands:
- go test - go test -v
environment: environment:
IMGUR_CLIENT_ID: IMGUR_CLIENT_ID:
from_secret: imgur_client_id from_secret: imgur_client_id

View File

@ -5,7 +5,7 @@ import (
"testing" "testing"
) )
func Test_LinkInfoApi_detectContentType(t *testing.T) { func TestLinkInfoApi_detectContentType(t *testing.T) {
api := New() api := New()
contentType := api.detectContentType("http://example.com", "") 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 { type expectedData struct {
Link string Link string
Title 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{} ret := &LinkInfo{}
api := New() api := New()