(lock_file: str, first: str, second: str)
| 283 | ], |
| 284 | ) |
| 285 | def test_sequential_mode_switch(lock_file: str, first: str, second: str) -> None: |
| 286 | lock = ReadWriteLock(lock_file, is_singleton=False) |
| 287 | first_ctx = lock.read_lock() if first == "read" else lock.write_lock() |
| 288 | second_ctx = lock.read_lock() if second == "read" else lock.write_lock() |
| 289 | with first_ctx: |
| 290 | pass |
| 291 | with second_ctx: |
| 292 | pass |
| 293 | |
| 294 | |
| 295 | def test_non_blocking_read_fails_when_write_held(lock_file: str) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…