meowlib/client/config_test.go
ycc 6f2a65dac9
Some checks failed
continuous-integration/drone/push Build is failing
storage get messages + config improve + tests
2023-02-15 22:08:17 +01:00

21 lines
352 B
Go

package client
import (
"testing"
)
func TestConfigSave(t *testing.T) {
c := GetConfig()
c.memoryPassword = "hideme"
c.IdentityFile = "test.id"
c.Chunksize = 10000000
c.SavePassword = true
c.SavedPassword = "stupid"
c.Save("test.cfg")
}
func TestConfigLoad(t *testing.T) {
_ = GetConfig().Load("test.cfg")
println(GetConfig().Chunksize)
}