mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 05:54:43 +02:00
fs/rc: add Copy method to rc.Params
This commit is contained in:
@ -63,6 +63,19 @@ func TestReshape(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
func TestParamsCopy(t *testing.T) {
|
||||
in := Params{
|
||||
"ok": 1,
|
||||
"x": "seventeen",
|
||||
"nil": nil,
|
||||
}
|
||||
out := in.Copy()
|
||||
assert.Equal(t, in, out)
|
||||
if &in == &out {
|
||||
t.Error("didn't copy")
|
||||
}
|
||||
}
|
||||
|
||||
func TestParamsGet(t *testing.T) {
|
||||
in := Params{
|
||||
"ok": 1,
|
||||
|
Reference in New Issue
Block a user