MCPcopy Create free account
hub / github.com/docker/docker-agent / TestCreateOutsideGitRepo

Function TestCreateOutsideGitRepo

pkg/worktree/worktree_test.go:170–174  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

168}
169
170func TestCreateOutsideGitRepo(t *testing.T) {
171 t.Parallel()
172 _, err := Create(t.Context(), t.TempDir(), "", WithRoot(t.TempDir()))
173 assert.ErrorIs(t, err, ErrNotGitRepository)
174}
175
176func TestCreateRejectsUnsafeNames(t *testing.T) {
177 t.Parallel()

Callers

nothing calls this directly

Calls 3

CreateFunction · 0.85
WithRootFunction · 0.85
ContextMethod · 0.80

Tested by

no test coverage detected