2018-03-13 21:30:51 +00:00
|
|
|
package rclone
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2023-04-20 21:02:56 +00:00
|
|
|
|
|
|
|
"github.com/restic/restic/internal/backend/test"
|
2018-03-13 21:30:51 +00:00
|
|
|
)
|
|
|
|
|
2023-04-20 21:02:56 +00:00
|
|
|
var configTests = []test.ConfigTestData[Config]{
|
|
|
|
{
|
|
|
|
"rclone:local:foo:/bar",
|
|
|
|
Config{
|
|
|
|
Remote: "local:foo:/bar",
|
|
|
|
Program: defaultConfig.Program,
|
|
|
|
Args: defaultConfig.Args,
|
|
|
|
Connections: defaultConfig.Connections,
|
|
|
|
Timeout: defaultConfig.Timeout,
|
2018-03-13 21:30:51 +00:00
|
|
|
},
|
2023-04-20 21:02:56 +00:00
|
|
|
},
|
|
|
|
}
|
2018-03-13 21:30:51 +00:00
|
|
|
|
2023-04-20 21:02:56 +00:00
|
|
|
func TestParseConfig(t *testing.T) {
|
|
|
|
test.ParseConfigTester(t, ParseConfig, configTests)
|
2018-03-13 21:30:51 +00:00
|
|
|
}
|