(t *testing.T)
| 14 | } |
| 15 | |
| 16 | func 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 | } |
nothing calls this directly
no test coverage detected