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]{
|
|
|
|
{
|
2023-04-21 19:11:33 +00:00
|
|
|
S: "rclone:local:foo:/bar",
|
|
|
|
Cfg: Config{
|
2023-04-20 21:02:56 +00:00
|
|
|
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
|
|
|
}
|