MCPcopy
hub / github.com/dagger/dagger / TestUpdateWorkspaceLockEntry

Function TestUpdateWorkspaceLockEntry

core/lockfile_update_test.go:11–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestUpdateWorkspaceLockEntry(t *testing.T) {
12 t.Parallel()
13
14 _, err := updateWorkspaceLockEntry(context.Background(), nil, workspace.LookupEntry{
15 Namespace: "acme",
16 Operation: "resolve",
17 })
18 require.Error(t, err)
19 require.ErrorContains(t, err, `unsupported lock entry "acme" "resolve"`)
20}

Callers

nothing calls this directly

Calls 3

updateWorkspaceLockEntryFunction · 0.85
BackgroundMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected