MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / TestDupConf

Function TestDupConf

utils/config_test.go:28–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26)
27
28func TestDupConf(t *testing.T) {
29 Convey("dup config file", t, func() {
30 var d string
31 var err error
32 d, err = ioutil.TempDir("", "utils_test_")
33 So(err, ShouldBeNil)
34 dupConfFile := filepath.Join(d, "config.yaml")
35
36 _, testFile, _, _ := runtime.Caller(0)
37 confFile := filepath.Join(filepath.Dir(testFile), "../test/node_standalone/config.yaml")
38
39 err = DupConf(confFile, dupConfFile)
40 So(err, ShouldBeNil)
41
42 err = DupConf("", dupConfFile)
43 So(err, ShouldNotBeNil)
44
45 err = DupConf(confFile, "")
46 So(err, ShouldNotBeNil)
47 })
48}

Callers

nothing calls this directly

Calls 1

DupConfFunction · 0.85

Tested by

no test coverage detected