From 70dea952412f16029baa618f8e7cf467c21bf965 Mon Sep 17 00:00:00 2001 From: zu1k Date: Thu, 20 Aug 2020 19:25:30 +0800 Subject: [PATCH] remove config test --- internal/app/config_test.go | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 internal/app/config_test.go diff --git a/internal/app/config_test.go b/internal/app/config_test.go deleted file mode 100644 index d8bfd62..0000000 --- a/internal/app/config_test.go +++ /dev/null @@ -1,36 +0,0 @@ -package app - -import ( - "errors" - "fmt" - "strconv" - "testing" - - "github.com/zu1k/proxypool/config" - "github.com/zu1k/proxypool/pkg/getter" -) - -func TestConfigFile(t *testing.T) { - c, err := config.Parse("../../source.yaml") - if err != nil { - t.Error(err) - return - } - if c == nil { - t.Error(errors.New("no sources")) - return - } - for idx, source := range c.Sources { - g, err := getter.NewGetter(source.Type, source.Options) - if err != nil { - t.Error(err, idx) - fmt.Println(source) - return - } - if g == nil { - t.Error(errors.New("getter is nil:" + strconv.Itoa(idx))) - fmt.Println(source) - return - } - } -}