Linting fixes.

This commit is contained in:
Stanislav Nikitin 2019-12-11 14:26:09 +05:00
parent 583afea730
commit dd0bf0e5b0
No known key found for this signature in database
GPG Key ID: 106900B32F8192EE
1 changed files with 4 additions and 12 deletions

View File

@ -15,6 +15,10 @@ import (
"github.com/stretchr/testify/require"
)
const (
testString = " I am test $tring"
)
func TestRegisterValidator(t *testing.T) {
initializeValidatorsStorage()
@ -87,8 +91,6 @@ func BenchmarkRegisterValidatorAsync(b *testing.B) {
func TestValidate(t *testing.T) {
initializeValidatorsStorage()
testString := " I am test string"
_ = RegisterValidator("string_test1", func(thing interface{}, optional ...interface{}) []interface{} {
var errs []interface{}
@ -115,8 +117,6 @@ func BenchmarkValidate(b *testing.B) {
initializeValidatorsStorage()
testString := " I am test $tring"
_ = RegisterValidator("string_test1", func(thing interface{}, optional ...interface{}) []interface{} {
var errs []interface{}
@ -149,8 +149,6 @@ func BenchmarkValidateAsync(b *testing.B) {
initializeValidatorsStorage()
testString := " I am test $tring"
_ = RegisterValidator("string_test1", func(thing interface{}, optional ...interface{}) []interface{} {
var errs []interface{}
@ -191,8 +189,6 @@ func BenchmarkValidateAsync(b *testing.B) {
func TestValidateMany(t *testing.T) {
initializeValidatorsStorage()
testString := " I am test string"
_ = RegisterValidator("string_test1", func(thing interface{}, optional ...interface{}) []interface{} {
var errs []interface{}
@ -235,8 +231,6 @@ func BenchmarkValidateMany(b *testing.B) {
initializeValidatorsStorage()
testString := " I am test $tring"
_ = RegisterValidator("string_test1", func(thing interface{}, optional ...interface{}) []interface{} {
var errs []interface{}
@ -281,8 +275,6 @@ func BenchmarkValidateManyAsync(b *testing.B) {
initializeValidatorsStorage()
testString := " I am test $tring"
_ = RegisterValidator("string_test1", func(thing interface{}, optional ...interface{}) []interface{} {
var errs []interface{}