Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Mark unsued parameters in tests as unused #118

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dsupdate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestDefaultBaseURL(t *testing.T) {

func FuzzForm(f *testing.F) {
f.Fuzz(func(
t *testing.T,
_ *testing.T,
domain string,
userID string,
password string,
Expand Down
6 changes: 3 additions & 3 deletions post_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func setup(status int, substatus dsupdate.SubStatus) (dsupdate.Client, func()) {
mux := http.NewServeMux()
server := httptest.NewServer(mux)

mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
mux.HandleFunc("/", func(w http.ResponseWriter, _ *http.Request) {
if status == connectionClose {
hj, _ := w.(http.Hijacker)
conn, _, _ := hj.Hijack()
Expand Down Expand Up @@ -62,7 +62,7 @@ func setupStatusOK() (dsupdate.Client, func()) {
mux := http.NewServeMux()
server := httptest.NewServer(mux)

mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
mux.HandleFunc("/", func(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Content-Type", "text/plain")
_, _ = w.Write([]byte("Request sent to DSU::Version_1_0 okay"))
})
Expand All @@ -83,7 +83,7 @@ func setupSubStatus(substatus dsupdate.SubStatus) (dsupdate.Client, func()) {
mux := http.NewServeMux()
server := httptest.NewServer(mux)

mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
mux.HandleFunc("/", func(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Content-Type", "text/plain")

w.Header().Set("X-DSU", strconv.Itoa(int(substatus)))
Expand Down
Loading