fix: DeepSource, Unused parameter detected in function

This commit is contained in:
walker088 2021-10-21 09:40:09 -03:00
parent b1e4683037
commit 88238010b2

View File

@ -189,7 +189,7 @@ type PostBody struct {
Message string `json:"message"`
}
func TestPostJson(t *testing.T) {
func TestPostJson(_ *testing.T) {
postBody := &PostBody{
UserName: "Juan Valdez",
Message: "Best coffee in town",
@ -209,7 +209,7 @@ func TestPostJson(t *testing.T) {
}).Start()
}
func TestPostFormUrlEncoded(t *testing.T) {
func TestPostFormUrlEncoded(_ *testing.T) {
postForm := url.Values{}
postForm.Set("user_name", "Juan Valdez")
postForm.Set("message", "Enjoy a good coffee!")