mirror of
https://github.com/rclone/rclone.git
synced 2025-11-23 21:44:49 +02:00
fs: fix option types printing incorrectly for backend flags
Before this change backend types were printing incorrectly as the name of the type, not what was defined by the Type() method. This was not working due to not calling the Type() method. However this needed to be defined on a non-pointer type due to the way the options are handled.
This commit is contained in:
@@ -11,8 +11,11 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
// Check it satisfies the interface
|
||||
var _ flagger = (*Duration)(nil)
|
||||
// Check it satisfies the interfaces
|
||||
var (
|
||||
_ flagger = (*Duration)(nil)
|
||||
_ flaggerNP = Duration(0)
|
||||
)
|
||||
|
||||
func TestParseDuration(t *testing.T) {
|
||||
now := time.Date(2020, 9, 5, 8, 15, 5, 250, time.UTC)
|
||||
|
||||
Reference in New Issue
Block a user