2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-21 02:19:04 +00:00
restic/internal/backend/rclone/config_test.go

25 lines
482 B
Go
Raw Normal View History

2018-03-13 21:30:51 +00:00
package rclone
import (
"testing"
"github.com/restic/restic/internal/backend/test"
2018-03-13 21:30:51 +00:00
)
var configTests = []test.ConfigTestData[Config]{
{
2023-04-21 19:11:33 +00:00
S: "rclone:local:foo:/bar",
Cfg: 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
},
},
}
2018-03-13 21:30:51 +00:00
func TestParseConfig(t *testing.T) {
test.ParseConfigTester(t, ParseConfig, configTests)
2018-03-13 21:30:51 +00:00
}