(tc vcsTestCase, subpath string)
| 1349 | } |
| 1350 | |
| 1351 | func testGitModuleRef(tc vcsTestCase, subpath string) string { |
| 1352 | url := tc.gitTestRepoRef |
| 1353 | if subpath != "" { |
| 1354 | if !strings.HasPrefix(subpath, "/") { |
| 1355 | subpath = "/" + subpath |
| 1356 | } |
| 1357 | url += subpath |
| 1358 | } |
| 1359 | return fmt.Sprintf("%s@%s", url, tc.gitTestRepoCommit) |
| 1360 | } |
| 1361 | |
| 1362 | func (ConfigSuite) TestDaggerGitRefs(ctx context.Context, t *testctx.T) { |
| 1363 | testOnMultipleVCS(t, func(ctx context.Context, t *testctx.T, tc vcsTestCase) { |
no outgoing calls
no test coverage detected