20 lines
324 B
Go
20 lines
324 B
Go
|
package client
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestConfigSave(t *testing.T) {
|
||
|
c := GetConfig()
|
||
|
c.memoryPassword = "hideme"
|
||
|
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)
|
||
|
}
|