(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestConfigParsing(t *testing.T) { |
| 29 | InitForTestPurposes() |
| 30 | Configure() |
| 31 | |
| 32 | // UnmarshalKey(Branding.LCName, &cfg) |
| 33 | log.Debugf("cfgPort %d", Cfg.Port) |
| 34 | log.Debugf("cfgDomains %s", Cfg.Domains[0]) |
| 35 | |
| 36 | assert.Equal(t, Cfg.Port, 9090) |
| 37 | |
| 38 | assert.NotEmpty(t, Cfg.JWT.MaxAge) |
| 39 | |
| 40 | } |
| 41 | func TestConfigEnvPrecedence(t *testing.T) { |
| 42 | t.Cleanup(cleanupEnv) |
| 43 |
nothing calls this directly
no test coverage detected