slimming/config_test.go

29 lines
331 B
Go
Raw Permalink Normal View History

2022-08-25 07:31:51 +00:00
package main
import (
"log"
"os"
"testing"
"gopkg.in/yaml.v3"
)
func TestConfig(t *testing.T) {
cnf := &Config{}
f, err := os.Open("config.yaml")
if err != nil {
log.Panic(err)
}
2022-08-26 08:53:05 +00:00
2022-08-25 07:31:51 +00:00
dec := yaml.NewDecoder(f)
err = dec.Decode(cnf)
if err != nil {
log.Panic(err)
}
t.Error(cnf)
}
2022-08-26 08:53:05 +00:00
func TestCase1(t *testing.T) {
}