MCPcopy Create free account
hub / github.com/dagger/dagger / testGitModuleRef

Function testGitModuleRef

core/integration/module_config_test.go:1351–1360  ·  view source on GitHub ↗
(tc vcsTestCase, subpath string)

Source from the content-addressed store, hash-verified

1349}
1350
1351func 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
1362func (ConfigSuite) TestDaggerGitRefs(ctx context.Context, t *testctx.T) {
1363 testOnMultipleVCS(t, func(ctx context.Context, t *testctx.T, tc vcsTestCase) {

Callers 12

TestArgTypesMethod · 0.85
TestByNameMethod · 0.85
TestGitModMethod · 0.85
TestCustomSDKMethod · 0.85
TestDaggerDevelopMethod · 0.85
TestDaggerInstallMethod · 0.85
TestSystemGoProxyMethod · 0.85
TestConfigsMethod · 0.85
TestDaggerGitRefsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected