MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestCheckWritePermission_Success

Function TestCheckWritePermission_Success

internal/update/update_test.go:260–265  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

258}
259
260func TestCheckWritePermission_Success(t *testing.T) {
261 dir := t.TempDir()
262 if err := checkWritePermission(dir); err != nil {
263 t.Errorf("expected write permission check to pass: %v", err)
264 }
265}
266
267func TestCheckWritePermission_Fail(t *testing.T) {
268 dir := t.TempDir()

Callers

nothing calls this directly

Calls 1

checkWritePermissionFunction · 0.85

Tested by

no test coverage detected