first commit
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
andrey1s
2021-04-27 14:58:19 +03:00
commit 913ca9672d
55 changed files with 4355 additions and 0 deletions

24
provider/env/provider_test.go vendored Normal file
View File

@@ -0,0 +1,24 @@
package env_test
import (
"os"
"testing"
"gitoa.ru/go-4devs/config/provider/env"
"gitoa.ru/go-4devs/config/test"
)
func TestProvider(t *testing.T) {
t.Parallel()
os.Setenv("FDEVS_CONFIG_DSN", test.DSN)
os.Setenv("FDEVS_CONFIG_PORT", "8080")
provider := env.New()
read := []test.Read{
test.NewRead("dsn", test.DSN),
test.NewRead("port", 8080),
}
test.Run(t, provider, read)
}