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

Function TestParseSyncPath

pkg/devspace/services/sync/controller_test.go:16–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14}
15
16func TestParseSyncPath(t *testing.T) {
17 testCases := []parseSyncPathTestCase{
18 {
19 name: "Test Windows",
20 in: "C:/codeproject:/home/dev/codeproject",
21 expectedLocal: "C:/codeproject",
22 expectedRemote: "/home/dev/codeproject",
23 },
24 }
25
26 for _, testCase := range testCases {
27 local, remote, err := ParseSyncPath(testCase.in)
28 assert.NilError(t, err)
29 assert.Equal(t, local, testCase.expectedLocal, "Expect local path in "+testCase.name)
30 assert.Equal(t, remote, testCase.expectedRemote, "Expect remote path in "+testCase.name)
31 }
32}

Callers

nothing calls this directly

Calls 2

ParseSyncPathFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected