Skip to content

Commit

Permalink
ebay: advance to go1.22.1
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdargan committed Mar 7, 2024
1 parent b008fb7 commit 6bb4f6f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
30 changes: 15 additions & 15 deletions finding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestFindingClient_FindItemsAdvanced(t *testing.T) {
t.Parallel()
t.Run("ResponseSuccess", func(t *testing.T) {
t.Parallel()
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
err := json.NewEncoder(w).Encode(&FindItemsAdvancedResponse{})
if err != nil {
Expand Down Expand Up @@ -76,7 +76,7 @@ func TestFindingClient_FindItemsAdvanced(t *testing.T) {

t.Run("InvalidStatusError", func(t *testing.T) {
t.Parallel()
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
}))
defer errorSrv.Close()
Expand All @@ -90,7 +90,7 @@ func TestFindingClient_FindItemsAdvanced(t *testing.T) {

t.Run("JSONDecodeError", func(t *testing.T) {
t.Parallel()
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
_, err := w.Write([]byte(`baddata123`))
if err != nil {
Expand All @@ -111,7 +111,7 @@ func TestFindingClient_FindItemsByCategory(t *testing.T) {
t.Parallel()
t.Run("ResponseSuccess", func(t *testing.T) {
t.Parallel()
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
err := json.NewEncoder(w).Encode(&FindItemsByCategoryResponse{})
if err != nil {
Expand Down Expand Up @@ -155,7 +155,7 @@ func TestFindingClient_FindItemsByCategory(t *testing.T) {

t.Run("InvalidStatusError", func(t *testing.T) {
t.Parallel()
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
}))
defer errorSrv.Close()
Expand All @@ -169,7 +169,7 @@ func TestFindingClient_FindItemsByCategory(t *testing.T) {

t.Run("JSONDecodeError", func(t *testing.T) {
t.Parallel()
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
_, err := w.Write([]byte(`baddata123`))
if err != nil {
Expand All @@ -190,7 +190,7 @@ func TestFindingClient_FindItemsByKeywords(t *testing.T) {
t.Parallel()
t.Run("ResponseSuccess", func(t *testing.T) {
t.Parallel()
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
err := json.NewEncoder(w).Encode(&FindItemsByKeywordsResponse{})
if err != nil {
Expand Down Expand Up @@ -234,7 +234,7 @@ func TestFindingClient_FindItemsByKeywords(t *testing.T) {

t.Run("InvalidStatusError", func(t *testing.T) {
t.Parallel()
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
}))
defer errorSrv.Close()
Expand All @@ -248,7 +248,7 @@ func TestFindingClient_FindItemsByKeywords(t *testing.T) {

t.Run("JSONDecodeError", func(t *testing.T) {
t.Parallel()
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
_, err := w.Write([]byte(`baddata123`))
if err != nil {
Expand All @@ -269,7 +269,7 @@ func TestFindingClient_FindItemsByProduct(t *testing.T) {
t.Parallel()
t.Run("ResponseSuccess", func(t *testing.T) {
t.Parallel()
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
err := json.NewEncoder(w).Encode(&FindItemsByProductResponse{})
if err != nil {
Expand Down Expand Up @@ -313,7 +313,7 @@ func TestFindingClient_FindItemsByProduct(t *testing.T) {

t.Run("InvalidStatusError", func(t *testing.T) {
t.Parallel()
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
}))
defer errorSrv.Close()
Expand All @@ -327,7 +327,7 @@ func TestFindingClient_FindItemsByProduct(t *testing.T) {

t.Run("JSONDecodeError", func(t *testing.T) {
t.Parallel()
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
_, err := w.Write([]byte(`baddata123`))
if err != nil {
Expand All @@ -348,7 +348,7 @@ func TestFindingClient_FindItemsInEBayStores(t *testing.T) {
t.Parallel()
t.Run("ResponseSuccess", func(t *testing.T) {
t.Parallel()
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
err := json.NewEncoder(w).Encode(&FindItemsInEBayStoresResponse{})
if err != nil {
Expand Down Expand Up @@ -392,7 +392,7 @@ func TestFindingClient_FindItemsInEBayStores(t *testing.T) {

t.Run("InvalidStatusError", func(t *testing.T) {
t.Parallel()
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
}))
defer errorSrv.Close()
Expand All @@ -406,7 +406,7 @@ func TestFindingClient_FindItemsInEBayStores(t *testing.T) {

t.Run("JSONDecodeError", func(t *testing.T) {
t.Parallel()
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
errorSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
_, err := w.Write([]byte(`baddata123`))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/matthewdargan/ebay

go 1.22.0
go 1.22.1

0 comments on commit 6bb4f6f

Please sign in to comment.