location: Make ParseConfig-test backend agnostic
The backend specific parts of the test are now directly handled by the respective backend. Duplicate tests were removed.
This commit is contained in:
parent
9aa9e0d1ec
commit
555be49a79
3 changed files with 87 additions and 322 deletions
|
@ -11,6 +11,34 @@ var configTests = []test.ConfigTestData[Config]{
|
|||
Path: "/some/path",
|
||||
Connections: 2,
|
||||
}},
|
||||
{S: "local:dir1/dir2", Cfg: Config{
|
||||
Path: "dir1/dir2",
|
||||
Connections: 2,
|
||||
}},
|
||||
{S: "local:../dir1/dir2", Cfg: Config{
|
||||
Path: "../dir1/dir2",
|
||||
Connections: 2,
|
||||
}},
|
||||
{S: "local:/dir1:foobar/dir2", Cfg: Config{
|
||||
Path: "/dir1:foobar/dir2",
|
||||
Connections: 2,
|
||||
}},
|
||||
{S: `local:\dir1\foobar\dir2`, Cfg: Config{
|
||||
Path: `\dir1\foobar\dir2`,
|
||||
Connections: 2,
|
||||
}},
|
||||
{S: `local:c:\dir1\foobar\dir2`, Cfg: Config{
|
||||
Path: `c:\dir1\foobar\dir2`,
|
||||
Connections: 2,
|
||||
}},
|
||||
{S: `local:C:\Users\appveyor\AppData\Local\Temp\1\restic-test-879453535\repo`, Cfg: Config{
|
||||
Path: `C:\Users\appveyor\AppData\Local\Temp\1\restic-test-879453535\repo`,
|
||||
Connections: 2,
|
||||
}},
|
||||
{S: `local:c:/dir1/foobar/dir2`, Cfg: Config{
|
||||
Path: `c:/dir1/foobar/dir2`,
|
||||
Connections: 2,
|
||||
}},
|
||||
}
|
||||
|
||||
func TestParseConfig(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue