Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support binding for slice/array obj [Rewrite] #2302

Merged
Prev Previous commit
Next Next commit
rename unit testing func
  • Loading branch information
wuhuizuo committed Apr 13, 2020
commit 03ce1a6b864de65c92f305e8b6d90c1675f2c9e2
4 changes: 2 additions & 2 deletions binding/default_validator_test.go
Original file line number Diff line number Diff line change
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