summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-01-23 18:13:21 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-01-23 18:13:21 +0100
commitf173678c0f7e3ace0909cbaad98f532eea944a0c (patch)
treeae7f9c1f4a8b052fe14464157a4dc6d307eb101f
parent9f46bb27ae80b3ec06a63c86210655f302578496 (diff)
rename
-rw-r--r--href_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/href_test.go b/href_test.go
index 86a0b8b..bb02a1b 100644
--- a/href_test.go
+++ b/href_test.go
@@ -10,7 +10,7 @@ import (
func TestTitle(t *testing.T) {
testCases := []struct {
- golden, title, contentType string
+ fixture, title, contentType string
}{
{
`testdata/linux.org.ru`,
@@ -34,9 +34,9 @@ func TestTitle(t *testing.T) {
},
}
for _, tc := range testCases {
- t.Run(tc.golden, func(t *testing.T) {
+ t.Run(tc.fixture, func(t *testing.T) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
- fd, err := os.Open(tc.golden)
+ fd, err := os.Open(tc.fixture)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
@@ -48,7 +48,7 @@ func TestTitle(t *testing.T) {
defer ts.Close()
title, err := getTitle(ts.URL)
if err != nil {
- t.Error(tc.golden, err)
+ t.Error(tc.fixture, err)
}
if title != tc.title {
t.Errorf("got %v, want %v", title, tc.title)