mirror of
https://github.com/sascha-hemi/spaceDevices.git
synced 2026-03-21 05:06:36 +01:00
20 lines
474 B
Go
20 lines
474 B
Go
package conf
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/ktt-ol/spaceDevices/internal/confrnal/conf"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func Test_exampleConfig(t *testing.T) {
|
|
assert := assert.New(t)
|
|
|
|
config := conf.LoadConfig("../config.example.toml")
|
|
assert.Equal(false, config.Misc.DebugLogging)
|
|
assert.Equal("", config.Misc.Logfile)
|
|
assert.Equal(2, len(config.Locations))
|
|
assert.Equal("Bar", config.Locations[0].Name)
|
|
assert.Equal(2, len(config.Locations[0].Ids))
|
|
}
|