mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-19 15:57:48 +08:00
rename unit testing func
This commit is contained in:
parent
bc420581bc
commit
03ce1a6b86
@ -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"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user