(t *testing.T)
| 22 | ) |
| 23 | |
| 24 | func initTestDirs(t *testing.T) (string, string, string) { |
| 25 | testRemotePath, err := filepath.EvalSymlinks(t.TempDir()) |
| 26 | if err != nil { |
| 27 | t.Fatal(err) |
| 28 | } |
| 29 | |
| 30 | testLocalPath, err := filepath.EvalSymlinks(t.TempDir()) |
| 31 | if err != nil { |
| 32 | t.Fatal(err) |
| 33 | } |
| 34 | |
| 35 | outside, err := filepath.EvalSymlinks(t.TempDir()) |
| 36 | if err != nil { |
| 37 | t.Fatal(err) |
| 38 | } |
| 39 | |
| 40 | return testRemotePath, testLocalPath, outside |
| 41 | } |
| 42 | |
| 43 | func createTestSyncClient(testLocalPath string, testCases testCaseList) (*Sync, error) { |
| 44 | sync, err := NewSync(context.Background(), testLocalPath, getSyncOptions(testCases)) |
no test coverage detected