(t *testing.T)
| 93 | } |
| 94 | |
| 95 | func TestFileLockManager_NormalizesPath(t *testing.T) { |
| 96 | mgr := NewFileLockManager() |
| 97 | |
| 98 | // Both should resolve to the same absolute path |
| 99 | mgr.Lock("./test.go") |
| 100 | // If this doesn't deadlock, the paths are correctly normalized |
| 101 | ch := make(chan struct{}) |
| 102 | go func() { |
| 103 | mgr.Lock("test.go") |
| 104 | close(ch) |
| 105 | mgr.Unlock("test.go") |
| 106 | }() |
| 107 | |
| 108 | mgr.Unlock("./test.go") |
| 109 | <-ch // Wait for the goroutine to acquire the lock |
| 110 | } |
nothing calls this directly
no test coverage detected