The function TestValidateTMPFail tests that the validation fails, but because the problem is correctly delivered to the user, the result code of the request is 200 OK. The same applies to the test function TestValidateBadgeFail.
|
func TestValidateTMPFail(t *testing.T) { |
|
func TestValidateBadgeFail(t *testing.T) { //TODO |
Are the results codes obtained from the tested functions correct in this case?
The function
TestValidateTMPFailtests that the validation fails, but because the problem is correctly delivered to the user, the result code of the request is 200 OK. The same applies to the test functionTestValidateBadgeFail.gin-valid/internal/web/validate_test.go
Line 170 in 5683eb9
gin-valid/internal/web/validate_test.go
Line 77 in 5683eb9
Are the results codes obtained from the tested functions correct in this case?