aboutsummaryrefslogtreecommitdiff
path: root/config_test.go
blob: 207f429802a5996c87a4e78cc2518ea091747454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package main

import (
	"bytes"
	_ "embed"
	"testing"

	"go.awhk.org/core"
)

//go:embed config_example.yaml
var cfg []byte

func TestConfig(s *testing.T) {
	t := core.T{T: s}

	_, err := loadConfig(bytes.NewReader(cfg))
	t.AssertErrorIs(nil, err)
}