fs/hash: move interface assertion to tests so it doesn't pull in spf13/flag

This commit is contained in:
Nick Craig-Wood 2018-01-26 14:25:21 +00:00
parent a69fc8b80d
commit bc3ee977f4
2 changed files with 4 additions and 4 deletions

View file

@ -6,10 +6,14 @@ import (
"testing"
"github.com/ncw/rclone/fs/hash"
"github.com/spf13/pflag"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
// Check it satisfies the interface
var _ pflag.Value = (*hash.Type)(nil)
func TestHashSet(t *testing.T) {
var h hash.Set