Skip to content

Commit

Permalink
Renamed tests/-Folder into testdata/, because this is the default for…
Browse files Browse the repository at this point in the history
… `go test`

> go help test
...
The go tool will ignore a directory named "testdata", making it available
to hold ancillary data needed by the tests.
...
  • Loading branch information
andygrunwald committed Jul 2, 2017
1 parent 2aa1918 commit 100f726
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions trending_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestGetDevelopers_Today(t *testing.T) {
testFormValues(t, r, values{
"since": "daily",
})
website := getContentOfFile("./tests/github.com_trending_developers.html")
website := getContentOfFile("./testdata/github.com_trending_developers.html")
fmt.Fprint(w, string(website))
})

Expand Down Expand Up @@ -155,7 +155,7 @@ func TestGetTrendingLanguages(t *testing.T) {

mux.HandleFunc("/trending", func(w http.ResponseWriter, r *http.Request) {
testMethod(t, r, "GET")
website := getContentOfFile("./tests/github.com_trending.html")
website := getContentOfFile("./testdata/github.com_trending.html")
fmt.Fprint(w, string(website))
})

Expand Down Expand Up @@ -210,7 +210,7 @@ func TestGetLanguages(t *testing.T) {

mux.HandleFunc("/trending", func(w http.ResponseWriter, r *http.Request) {
testMethod(t, r, "GET")
website := getContentOfFile("./tests/github.com_trending.html")
website := getContentOfFile("./testdata/github.com_trending.html")
fmt.Fprint(w, string(website))
})

Expand Down Expand Up @@ -295,7 +295,7 @@ func TestGetProjects(t *testing.T) {
"since": "daily",
"l": "go",
})
website := getContentOfFile("./tests/github.com_trending.html")
website := getContentOfFile("./testdata/github.com_trending.html")
fmt.Fprint(w, string(website))
})

Expand Down

0 comments on commit 100f726

Please sign in to comment.