(t *testing.T)
| 207 | } |
| 208 | |
| 209 | func TestSaveConfigData(t *testing.T) { |
| 210 | Convey("Save a ConfigFile to file system", t, func() { |
| 211 | c, err := LoadConfigFile("testdata/conf.ini", "testdata/conf2.ini") |
| 212 | So(err, ShouldBeNil) |
| 213 | So(c, ShouldNotBeNil) |
| 214 | |
| 215 | c.SetValue("", "", "empty") |
| 216 | var dst bytes.Buffer |
| 217 | So(SaveConfigData(c, &dst), ShouldBeNil) |
| 218 | So(dst.Len(), ShouldNotEqual, 0) |
| 219 | }) |
| 220 | } |
| 221 | |
| 222 | func TestReload(t *testing.T) { |
| 223 | Convey("Reload a configuration file", t, func() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…