mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 16:53:59 +00:00
25 lines
482 B
Go
25 lines
482 B
Go
package rclone
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/restic/restic/internal/backend/test"
|
|
)
|
|
|
|
var configTests = []test.ConfigTestData[Config]{
|
|
{
|
|
S: "rclone:local:foo:/bar",
|
|
Cfg: Config{
|
|
Remote: "local:foo:/bar",
|
|
Program: defaultConfig.Program,
|
|
Args: defaultConfig.Args,
|
|
Connections: defaultConfig.Connections,
|
|
Timeout: defaultConfig.Timeout,
|
|
},
|
|
},
|
|
}
|
|
|
|
func TestParseConfig(t *testing.T) {
|
|
test.ParseConfigTester(t, ParseConfig, configTests)
|
|
}
|