restic/internal/backend/rclone/config_test.go

25 lines
474 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]{
{
"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
},
},
}
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
}