fix: DeepSource, Unused parameter detected in function
This commit is contained in:
parent
b1e4683037
commit
88238010b2
@ -189,7 +189,7 @@ type PostBody struct {
|
|||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestPostJson(t *testing.T) {
|
func TestPostJson(_ *testing.T) {
|
||||||
postBody := &PostBody{
|
postBody := &PostBody{
|
||||||
UserName: "Juan Valdez",
|
UserName: "Juan Valdez",
|
||||||
Message: "Best coffee in town",
|
Message: "Best coffee in town",
|
||||||
@ -209,7 +209,7 @@ func TestPostJson(t *testing.T) {
|
|||||||
}).Start()
|
}).Start()
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestPostFormUrlEncoded(t *testing.T) {
|
func TestPostFormUrlEncoded(_ *testing.T) {
|
||||||
postForm := url.Values{}
|
postForm := url.Values{}
|
||||||
postForm.Set("user_name", "Juan Valdez")
|
postForm.Set("user_name", "Juan Valdez")
|
||||||
postForm.Set("message", "Enjoy a good coffee!")
|
postForm.Set("message", "Enjoy a good coffee!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user