Skip to content

Commit

Permalink
rename unit testing func
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhuizuo committed Apr 13, 2020
1 parent bc42058 commit 03ce1a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binding/default_validator_test.go
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
)

func TestSliceValidateError_Error(t *testing.T) {
func TestSliceValidateError(t *testing.T) {
tests := []struct {
name string
err sliceValidateError
Expand All @@ -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"`
Expand Down

0 comments on commit 03ce1a6

Please sign in to comment.