Correct test names for default_test, add verbose flag to go test
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
137e18e6c1
commit
ef026cf138
|
@ -6,7 +6,7 @@ steps:
|
|||
- name: test
|
||||
image: golang
|
||||
commands:
|
||||
- go test
|
||||
- go test -v
|
||||
environment:
|
||||
IMGUR_CLIENT_ID:
|
||||
from_secret: imgur_client_id
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue