mirror of
https://github.com/rclone/rclone.git
synced 2025-01-13 20:38:12 +02: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"])
|
||
|
}
|