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

Function createTestSyncClient

pkg/devspace/sync/sync_test.go:43–51  ·  view source on GitHub ↗
(testLocalPath string, testCases testCaseList)

Source from the content-addressed store, hash-verified

41}
42
43func createTestSyncClient(testLocalPath string, testCases testCaseList) (*Sync, error) {
44 sync, err := NewSync(context.Background(), testLocalPath, getSyncOptions(testCases))
45 if err != nil {
46 return nil, err
47 }
48
49 sync.onError = make(chan error)
50 return sync, nil
51}
52
53func TestInitialSync(t *testing.T) {
54 for _, initialSync := range []latest.InitialSyncStrategy{latest.InitialSyncStrategyPreferLocal, latest.InitialSyncStrategyMirrorLocal} {

Callers 2

TestInitialSyncFunction · 0.85
TestNormalSyncFunction · 0.85

Calls 2

NewSyncFunction · 0.85
getSyncOptionsFunction · 0.85

Tested by

no test coverage detected