Browse Source

Correct test names for default_test, add verbose flag to go test

master
Tyler 3 years ago
parent
commit
ef026cf138
  1. 2
      .drone.yml
  2. 6
      default_test.go

2
.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

6
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()

Loading…
Cancel
Save