mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 13:26:11 +08:00
18 lines
288 B
Go
18 lines
288 B
Go
|
package fs
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestMetadataSet(t *testing.T) {
|
||
|
var m Metadata
|
||
|
assert.Nil(t, m)
|
||
|
m.Set("key", "value")
|
||
|
assert.NotNil(t, m)
|
||
|
assert.Equal(t, "value", m["key"])
|
||
|
m.Set("key", "value2")
|
||
|
assert.Equal(t, "value2", m["key"])
|
||
|
}
|