github.com/sharovik/devbot@v1.0.1-0.20240308094637-4a0387c40516/internal/config/config_test.go (about) 1 package config 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestConfig_GetEnvironment(t *testing.T) { 10 var cfg Config 11 12 cfg.appEnv = "testing" 13 assert.Equal(t, "testing", cfg.GetAppEnv()) 14 } 15 16 func TestInit(t *testing.T) { 17 c, err := Init() 18 assert.NoError(t, err) 19 assert.Equal(t, true, c.initialised) 20 }