MCPcopy
hub / github.com/dagger/container-use / WorktreePath

Method WorktreePath

environment/integration/helpers.go:307–311  ·  view source on GitHub ↗

WorktreePath returns the worktree path for an environment, handling errors

(envID string)

Source from the content-addressed store, hash-verified

305
306// WorktreePath returns the worktree path for an environment, handling errors
307func (u *UserActions) WorktreePath(envID string) string {
308 worktreePath, err := u.repo.WorktreePath(envID)
309 require.NoError(u.t, err, "Failed to get worktree path for environment %s", envID)
310 return worktreePath
311}
312
313// ReadWorktreeFile reads directly from an environment's worktree
314func (u *UserActions) ReadWorktreeFile(envID, path string) string {

Callers 8

ReadWorktreeFileMethod · 0.95
CorruptWorktreeMethod · 0.95
TestRepositoryCreateFunction · 0.45
TestRepositoryDeleteFunction · 0.45
TestGitAuditTrailFunction · 0.45
TestEnvironmentIsolationFunction · 0.45
TestWeirdUserScenariosFunction · 0.45

Calls

no outgoing calls

Tested by 6

TestRepositoryCreateFunction · 0.36
TestRepositoryDeleteFunction · 0.36
TestGitAuditTrailFunction · 0.36
TestEnvironmentIsolationFunction · 0.36
TestWeirdUserScenariosFunction · 0.36