MCPcopy Create free account
hub / github.com/diillson/chatcli / TestFileLockManager_BasicLockUnlock

Function TestFileLockManager_BasicLockUnlock

cli/agent/workers/file_lock_test.go:9–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestFileLockManager_BasicLockUnlock(t *testing.T) {
10 mgr := NewFileLockManager()
11
12 mgr.Lock("test.go")
13 mgr.Unlock("test.go")
14 // Should not panic or deadlock
15}
16
17func TestFileLockManager_WithLock(t *testing.T) {
18 mgr := NewFileLockManager()

Callers

nothing calls this directly

Calls 3

LockMethod · 0.95
UnlockMethod · 0.95
NewFileLockManagerFunction · 0.85

Tested by

no test coverage detected