MCPcopy Index your code
hub / github.com/devspace-sh/devspace / initTestDirs

Function initTestDirs

pkg/devspace/sync/sync_test.go:24–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22)
23
24func 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
43func createTestSyncClient(testLocalPath string, testCases testCaseList) (*Sync, error) {
44 sync, err := NewSync(context.Background(), testLocalPath, getSyncOptions(testCases))

Callers 2

TestInitialSyncFunction · 0.85
TestNormalSyncFunction · 0.85

Calls 1

FatalMethod · 0.45

Tested by

no test coverage detected