~nvkv/amitm

ref: e902bc5a4c8d9b6120845f08ff9e2887d0d7fc58 amitm/internal/config/v1/config_test.go -rw-r--r-- 253 bytes
e902bc5aSemyon Novikov Initial commit 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package config

import (
	"fmt"
	"testing"
)

func TestReadConfig(t *testing.T) {
	cfg, err := ReadConfig("../../../examples/amitm.toml")
	fmt.Printf("cfg: %+v\n", cfg.actionmap)
	if err != nil {
		t.Errorf("Can't read example.toml file: %s", err)
	}
}