2016-09-17 01:30:29 +02:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
// TestRawConfig is used to create a RawConfig for testing.
|
|
|
|
func TestRawConfig(t *testing.T, c map[string]interface{}) *RawConfig {
|
2017-08-26 01:23:47 +02:00
|
|
|
t.Helper()
|
|
|
|
|
2016-09-17 01:30:29 +02:00
|
|
|
cfg, err := NewRawConfig(c)
|
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("err: %s", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
return cfg
|
|
|
|
}
|