MCPcopy Index your code
hub / github.com/docker/docker-agent / TestCreateWithInvalidBase

Function TestCreateWithInvalidBase

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

Source from the content-addressed store, hash-verified

85}
86
87func TestCreateWithInvalidBase(t *testing.T) {
88 t.Parallel()
89 dir := bootstrapRepo(t)
90
91 _, err := Create(t.Context(), dir, "bad-base", WithRoot(t.TempDir()), WithBase("does-not-exist"))
92 assert.ErrorIs(t, err, ErrInvalidBase)
93}
94
95func TestCreateWithRemoteBaseFetches(t *testing.T) {
96 t.Parallel()

Callers

nothing calls this directly

Calls 5

CreateFunction · 0.85
WithRootFunction · 0.85
WithBaseFunction · 0.85
ContextMethod · 0.80
bootstrapRepoFunction · 0.70

Tested by

no test coverage detected