rename unit testing func

This commit is contained in:
wuhuizuo 2020-04-13 04:17:59 +00:00
parent bc420581bc
commit 03ce1a6b86

View File

@ -9,7 +9,7 @@ import (
"testing" "testing"
) )
func TestSliceValidateError_Error(t *testing.T) { func TestSliceValidateError(t *testing.T) {
tests := []struct { tests := []struct {
name string name string
err sliceValidateError 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 { type exampleStruct struct {
A string `binding:"max=8"` A string `binding:"max=8"`
B int `binding:"gt=0"` B int `binding:"gt=0"`