Move all backends into backend directory
This commit is contained in:
@@ -63,10 +63,10 @@ package {{ .FsName }}_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/ncw/rclone/backend/{{ .FsName }}"
|
||||
"github.com/ncw/rclone/fs"
|
||||
"github.com/ncw/rclone/fstest/fstests"
|
||||
"github.com/ncw/rclone/{{ .FsName }}"
|
||||
{{ if (or (eq .FsName "crypt") (eq .FsName "cache")) }} _ "github.com/ncw/rclone/local"
|
||||
{{ if (or (eq .FsName "crypt") (eq .FsName "cache")) }} _ "github.com/ncw/rclone/backend/local"
|
||||
{{end}})
|
||||
|
||||
func TestSetup{{ .Suffix }}(t *testing.T)() {
|
||||
@@ -106,7 +106,7 @@ func generateTestProgram(t *template.Template, fns []string, Fsname string, opti
|
||||
}
|
||||
|
||||
data.TestName = "Test" + data.UpperFsName + data.Suffix + ":"
|
||||
outfile := "../../" + data.FsName + "/" + data.FsName + data.Suffix + "_test.go"
|
||||
outfile := "../../backend/" + data.FsName + "/" + data.FsName + data.Suffix + "_test.go"
|
||||
|
||||
if data.FsName == "local" {
|
||||
data.TestName = ""
|
||||
|
||||
Reference in New Issue
Block a user