You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
401 B

package config_test
import (
"errors"
"testing"
"github.com/stretchr/testify/assert"
"gopkg.in/go-playground/validator.v9"
"gerrit.wikimedia.org/r/blubber/config"
)
func TestIsValidationError(t *testing.T) {
assert.False(t, config.IsValidationError(nil))
assert.False(t, config.IsValidationError(errors.New("foo")))
assert.True(t, config.IsValidationError(validator.ValidationErrors{}))
}