fs/hash: move interface assertion to tests so it doesn't pull in spf13/flag
This commit is contained in:
parent
a69fc8b80d
commit
bc3ee977f4
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue