mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 12:05:05 +08:00
6a0e021dac
This implements integration tests for the feature also.
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"])
|
|
}
|