Improve testing coverage

This commit is contained in:
TwinProduction
2021-01-09 22:55:36 -05:00
parent 150e33a1c7
commit 91a9fa5274
3 changed files with 138 additions and 0 deletions

View File

@ -86,6 +86,12 @@ func Get() *Config {
return config
}
// Set sets the configuration
// Used only for testing
func Set(cfg *Config) {
config = cfg
}
// Load loads a custom configuration file
// Note that the misconfiguration of some fields may lead to panics. This is on purpose.
func Load(configFile string) error {