(t *testing.T)
| 21 | ) |
| 22 | |
| 23 | func TestFileTypeChange(t *testing.T) { |
| 24 | // Use no versioning |
| 25 | id, _ := protocol.DeviceIDFromString(id2) |
| 26 | cfg, _, _ := config.Load("h2/config.xml", id, events.NoopLogger) |
| 27 | fld := cfg.Folders()["default"] |
| 28 | fld.Versioning = config.VersioningConfiguration{} |
| 29 | cfg.SetFolder(fld) |
| 30 | os.Rename("h2/config.xml", "h2/config.xml.orig") |
| 31 | defer os.Rename("h2/config.xml.orig", "h2/config.xml") |
| 32 | cfg.Save() |
| 33 | |
| 34 | testFileTypeChange(t) |
| 35 | } |
| 36 | |
| 37 | func TestFileTypeChangeSimpleVersioning(t *testing.T) { |
| 38 | // Use simple versioning |
nothing calls this directly
no test coverage detected