From 03ce1a6b864de65c92f305e8b6d90c1675f2c9e2 Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Mon, 13 Apr 2020 04:17:59 +0000 Subject: [PATCH] rename unit testing func --- binding/default_validator_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binding/default_validator_test.go b/binding/default_validator_test.go index 61c7d118ea..e9c6de447d 100644 --- a/binding/default_validator_test.go +++ b/binding/default_validator_test.go @@ -9,7 +9,7 @@ import ( "testing" ) -func TestSliceValidateError_Error(t *testing.T) { +func TestSliceValidateError(t *testing.T) { tests := []struct { name string err sliceValidateError @@ -26,7 +26,7 @@ func TestSliceValidateError_Error(t *testing.T) { } } -func Test_defaultValidator_Validate(t *testing.T) { +func TestDefaultValidator(t *testing.T) { type exampleStruct struct { A string `binding:"max=8"` B int `binding:"gt=0"`