From f173678c0f7e3ace0909cbaad98f532eea944a0c Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 23 Jan 2018 18:13:21 +0100 Subject: rename --- href_test.go | 8 ++++---- 1 file 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) -- cgit v1.2.3