Add tests and godebug to compare structs

This commit is contained in:
Manuel de Brito Fontes 2017-01-13 10:26:13 -03:00
parent dbd368adf2
commit 64a5e43394
10 changed files with 865 additions and 9 deletions

View file

@ -37,10 +37,6 @@ const (
// ReadConfig obtains the configuration defined by the user merged with the defaults.
func ReadConfig(conf *api.ConfigMap) config.Configuration {
if len(conf.Data) == 0 {
return config.NewDefault()
}
errors := make([]int, 0)
skipUrls := make([]string, 0)
whitelist := make([]string, 0)