MCPcopy Index your code
hub / github.com/dagger/dagger / gitServiceHTTPWithBranch

Function gitServiceHTTPWithBranch

core/integration/services_test.go:2540–2546  ·  view source on GitHub ↗
(ctx context.Context, t testing.TB, c *dagger.Client, hostname string, content *dagger.Directory, branchName string, username string, token *dagger.Secret)

Source from the content-addressed store, hash-verified

2538}
2539
2540func gitServiceHTTPWithBranch(ctx context.Context, t testing.TB, c *dagger.Client, hostname string, content *dagger.Directory, branchName string, username string, token *dagger.Secret) (*dagger.Service, string) {
2541 t.Helper()
2542
2543 gitDaemon, repoURL := httpServiceDirAuth(ctx, t, c, hostname, makeGitDir(c, content, branchName), username, token)
2544 repoURL += "/repo.git"
2545 return gitDaemon, repoURL
2546}
2547
2548func makeGitDir(c *dagger.Client, content *dagger.Directory, branchName string) *dagger.Directory {
2549 return c.Container().

Callers 3

TestAuthMethod · 0.85
TestAuthUsernameMethod · 0.85
TestAuthClientMethod · 0.85

Calls 2

httpServiceDirAuthFunction · 0.85
makeGitDirFunction · 0.85

Tested by

no test coverage detected