package config

import (
	"encoding/json"
	"fmt"
	"testing"
)

func TestConfig_LoadFromYAMLPath(t *testing.T) {
	err := Conf.LoadFromYAMLPath("./test_config.yml")
	if err != nil {
		t.Errorf("Load from yaml faild: %v", err)
	}
	data, _ := json.MarshalIndent(Conf, "", "    ")
	fmt.Println(string(data))
}
