MCPcopy Create free account

hub / github.com/tox-dev/filelock / functions

Functions3,548 in github.com/tox-dev/filelock

Functionsoft_open_spy
(mocker: MockerFixture)
tests/soft/exclusive/conftest.py:27
Functionsource_gone
(directory_ref: tuple[str, int | None], name: str)
tests/soft/strict/test_publication_rollback.py:69
Functionspy
(path: str | os.PathLike[str], *, dir_fd: int | None = None)
tests/soft/test_lease_heartbeat.py:296
Functionstale_lock
(tmp_path: Path)
tests/filesystem/conftest.py:16
Functionstale_scan
(directory_ref: tuple[str, int | None])
tests/soft/strict/test_scan.py:41
Functionstale_then_vanish
(path: PathValue, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/soft/strict/test_claims.py:261
Functionstall_the_first_release
(record: logging.LogRecord)
tests/core/test_shutdown.py:269
Functionstand_in
(successor: Path, freed: os.stat_result)
tests/conftest.py:187
Functionsteady_clock
(mocker: MockerFixture)
tests/core/test_timeout.py:133
Functionsticky_dir_with_mapped_owner
(tmp_path: Path, mocker: MockerFixture)
tests/conftest.py:267
Functionsticky_fd
(tmp_path: Path)
tests/filesystem/test_ownership.py:91
Functionstop
(_signum: int, _frame: FrameType | None)
tests/sqlite/test_lock_contention.py:247
Functionsuccessor_breaks_and_acquires_first
()
tests/soft/exclusive/test_recovery_takeover.py:57
Functionsuccessor_takes_the_freed_number
()
tests/filesystem/test_exchange_recovery.py:208
Functionsuspended_host
(mocker: MockerFixture)
tests/soft/read_write/test_participant.py:190
Functionswap_at_the_occurrence
(path: PathValue, *args: int, **options: int | None)
tests/soft/strict/test_directories_ownership.py:69
Functionswap_then_access
(filename: str, permission: int, **kwargs: bool)
tests/filesystem/test_files.py:120
Functionswap_then_connect
( shared_database: str, *, check_same_thread: bool, factory: type[sqlite3.Conn
tests/sqlite/test_links.py:276
Functionswap_then_link
(directory_ref: tuple[str, int | None], source_name: str, destination_name: str)
tests/soft/strict/test_publication_close.py:138
Functionswitch_before_begin
(connection: ForkSafeConnection, statement: str)
tests/sqlite/test_connection.py:234
Functionsync_locks
(tmp_path: Path)
tests/sqlite/conftest.py:72
Functiontake_from_cache
(frame: FrameType, event: str, _arg: Unused)
tests/core/test_shutdown.py:238
Functiontake_from_cache
(frame: FrameType, event: str, _arg: Unused)
tests/async_lock/test_finalization.py:221
Functiontarget_a
()
tests/soft/read_write/test_lock_contention.py:160
Functiontest_a_canceled_waiting_writer_lets_readers_in
(lock_file: str)
tests/sqlite/test_async_contention.py:172
Functiontest_a_cold_start_commit_rechecks_the_initialized_epoch
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_publication.py:165
Functiontest_a_cold_start_record_keeps_its_slot_when_a_peer_extends_it
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_publication.py:136
Functiontest_a_commit_beside_another_late_record_counts_as_lost
( lock_file: str, files: OsFiles, root: str, head: Path, mocker: MockerFixture, witness: str )
tests/soft/read_write/test_generations_publication.py:89
Functiontest_a_commit_flushes_only_its_generation_record
( lock_file: str, files: OsFiles, root: str, flushes: MockType )
tests/soft/read_write/test_generations_compaction.py:65
Functiontest_a_commit_into_a_log_without_its_directory_is_lost
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_generations.py:64
Functiontest_a_commit_overtaken_by_a_wipe_leaves_the_replacement_generation_alone
( lock_file: str, files: OsFiles, root: str, head: Path, mocker: MockerFixture, generation: int )
tests/soft/read_write/test_generations_publication.py:23
Functiontest_a_commit_reported_lost_that_landed_is_recognized
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_participant.py:286
Functiontest_a_commit_that_lands_in_a_compacted_slot_counts_as_lost
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_publication.py:46
Functiontest_a_contender_suspended_after_its_read_does_not_evict_a_live_holder
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_sweep.py:212
Functiontest_a_contender_waiting_when_the_log_is_removed_starts_over
( lock_file: str, lock: SoftReadWriteLock, mocker: MockerFixture )
tests/soft/read_write/test_lock_recovery.py:197
Functiontest_a_failed_head_rename_keeps_the_commit
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_publication.py:255
Functiontest_a_head_from_a_wiped_log_names_nothing_in_the_new_one
( lock_file: str, files: OsFiles, root: str, head: Path )
tests/soft/read_write/test_generations_head.py:137
Functiontest_a_head_left_on_a_compacted_generation_fails_closed
( lock_file: str, files: OsFiles, root: str, head: Path, mocker: MockerFixture )
tests/soft/read_write/test_generations_head.py:111
Functiontest_a_head_record_only_says_where_to_look
( lock_file: str, files: OsFiles, root: str, head: Path, writers: list[str | None], record: bytes )
tests/soft/read_write/test_generations_head.py:100
Functiontest_a_heartbeat_that_raises_reports_the_hold_lost
(lock_file: str, mocker: MockerFixture)
tests/soft/read_write/test_heartbeat.py:197
Functiontest_a_late_head_rename_never_moves_head_back
( lock_file: str, files: OsFiles, root: str, head: Path, mocker: MockerFixture )
tests/soft/read_write/test_generations_publication.py:236
Functiontest_a_listing_compacted_from_under_the_reader_is_taken_again
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations.py:182
Functiontest_a_listing_naming_a_compacted_generation_probes_past_it
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_head.py:70
Functiontest_a_listing_naming_only_compacted_generations_fails_closed
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations.py:171
Functiontest_a_listing_removes_old_generations_a_batch_at_a_time
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_compaction.py:34
Functiontest_a_log_whose_epoch_was_never_written_runs_without_head
( lock_file: str, files: OsFiles, root: str, head: Path )
tests/soft/read_write/test_generations_publication.py:283
Functiontest_a_missing_link_dependency_leaves_the_previous_generation
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_publication.py:225
Functiontest_a_participant_behind_a_compacted_generation_rescans
(lock_file: str)
tests/soft/read_write/test_lock_recovery.py:256
Functiontest_a_raising_on_compromise_still_stops_the_heartbeat
(lock_file: str)
tests/soft/read_write/test_heartbeat.py:117
Functiontest_a_record_refused_inside_the_window_keeps_its_slot
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture, generation: int )
tests/soft/read_write/test_generations_publication.py:114
Functiontest_a_remembered_head_gone_from_the_same_log_fails_closed
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_generations_head.py:39
Functiontest_a_replacement_log_keeps_its_writer_when_a_reader_stages_an_old_snapshot
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture, generation: int )
tests/soft/read_write/test_generations_publication.py:187
Functiontest_a_staged_snapshot_is_lost_when_its_directory_is_renamed
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_publication.py:208
Functiontest_a_stale_listing_cannot_prune_the_only_generation_of_a_rebuilt_log
(mocker: MockerFixture)
tests/soft/read_write/test_participant_model.py:376
Functiontest_a_symlink_and_its_target_are_separate_singletons
(tmp_path: Path)
tests/soft/read_write/test_lock_singleton.py:208
Functiontest_a_symlinked_lock_path_keeps_its_log_beside_the_symlink
(tmp_path: Path)
tests/soft/read_write/test_lock_singleton.py:196
Functiontest_a_tighter_peer_waits_out_the_holders_own_lease
(lock_file: str, files: OsFiles)
tests/soft/read_write/test_sweep.py:196
Functiontest_a_torn_head_still_refuses_a_first_generation
(lock_file: str, files: OsFiles, root: str, head: Path)
tests/soft/read_write/test_generations_compaction.py:74
Functiontest_a_waiting_writer_goes_ahead_of_new_readers
(lock_file: str)
tests/sqlite/test_async_contention.py:110
Functiontest_a_wiped_log_is_read_from_disk_not_memory
( lock_file: str, files: OsFiles, root: str, writers: list[str | None], expected: Snapshot )
tests/soft/read_write/test_generations_head.py:29
Functiontest_a_writer_times_out_waiting_for_another_task
(lock_file: str)
tests/sqlite/test_async_contention.py:191
Functiontest_acquire_after_a_staged_snapshot_disappears
( lock_file: str, lock: SoftReadWriteLock, mocker: MockerFixture, missing: str, hold: Call
tests/soft/read_write/test_lock_recovery.py:138
Functiontest_acquire_after_one_interrupted_once_held_excludes_another_process
(tmp_path: Path)
tests/core/test_interruption.py:205
Functiontest_acquire_cancellation_before_executor_start_rolls_back
( lock_file: str, mocker: MockerFixture, mode: Literal["read", "write"] )
tests/sqlite/test_async_cancellation.py:30
Functiontest_acquire_cancellation_before_executor_start_rolls_back
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation.py:155
Functiontest_acquire_cancellation_chains_attempt_and_rollback_errors
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_acquire_cancellation_errors.py:221
Functiontest_acquire_cancellation_chains_attempt_error_after_rollback
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation_errors.py:30
Functiontest_acquire_cancellation_chains_rollback_error
( tmp_path: Path, mocker: MockerFixture, caplog: pytest.LogCaptureFixture )
tests/async_lock/test_acquire_cancellation_errors.py:162
Functiontest_acquire_cancellation_does_not_release_later_claim
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation.py:286
Functiontest_acquire_cancellation_group_drops_equivalent_attempt_context
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation_errors.py:134
Functiontest_acquire_cancellation_group_keeps_distinct_attempt_context
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation_errors.py:105
Functiontest_acquire_cancellation_groups_attempt_and_rollback_errors
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_acquire_cancellation_errors.py:265
Functiontest_acquire_cancellation_groups_attempt_error_after_rollback
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation_errors.py:78
Functiontest_acquire_cancellation_groups_rollback_error
( tmp_path: Path, mocker: MockerFixture, caplog: pytest.LogCaptureFixture )
tests/async_lock/test_acquire_cancellation_errors.py:191
Functiontest_acquire_cancellation_rollback_failure_surfaces_backend_error
(tmp_path: Path)
tests/async_lock/test_acquire_rollback.py:86
Functiontest_acquire_cancellation_surfaces_acquire_and_rollback_errors
( lock_file: str, mocker: MockerFixture, mode: Literal["read", "write"] )
tests/sqlite/test_async_cancellation.py:220
Functiontest_acquire_cancellation_surfaces_compensation_failure
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_async_cancellation.py:154
Functiontest_acquire_cancellation_while_sqlite_waits_rolls_back
( lock_file: str, mocker: MockerFixture, mode: Literal["read", "write"] )
tests/sqlite/test_async_cancellation.py:186
Functiontest_acquire_converts_connect_lock_error_to_timeout
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_transactions_connection.py:59
Functiontest_acquire_default_excludes_contender
( sync_locks: tuple[ReadWriteLock, ReadWriteLock], mode: Literal["read", "write"] )
tests/sqlite/test_transactions_settings.py:109
Functiontest_acquire_failure_with_registration_failure_rolls_back
( tmp_path: Path, *, rollback_fails: bool, exception_count: int, expected_state: tuple[bool, int] )
tests/async_lock/test_acquire_rollback.py:160
Functiontest_acquire_flock_error_clears_pending_descriptor
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix_open.py:128
Functiontest_acquire_from_a_signal_handler_during_a_release_is_refused
( tmp_path: Path, mocker: MockerFixture, thread_local: bool, interrupted: str )
tests/core/test_acquire_signal.py:101
Functiontest_acquire_from_a_signal_handler_during_an_acquire_fails_fast
( tmp_path: Path, mocker: MockerFixture, soft_create_path: str )
tests/core/test_acquire_signal.py:69
Functiontest_acquire_hands_back_the_slot_when_the_heartbeat_cannot_start
( lock_file: str, lock: SoftReadWriteLock, mocker: MockerFixture, mode: Literal["read", "write"] )
tests/soft/read_write/test_heartbeat.py:291
Functiontest_acquire_interrupted_after_recording_the_hold_releases_it
(tmp_path: Path)
tests/core/test_interruption.py:189
Functiontest_acquire_interrupted_as_create_returns_removes_marker
(lock_path: Path, lock_type: type[SoftFileLock])
tests/soft/exclusive/test_publication_rollback.py:216
Functiontest_acquire_interrupted_while_joining_the_gate_leaves_the_lock_usable
( tmp_path: Path, mocker: MockerFixture, lock_type: type[AsyncFileLock | AsyncSoftFileLock] )
tests/async_lock/test_admission.py:98
Functiontest_acquire_on_closed_raises
(lock_file: str)
tests/soft/read_write/test_lock_close.py:35
Functiontest_acquire_outside_a_task_raises
(lock_file: str)
tests/sqlite/test_async_contention.py:201
Functiontest_acquire_proceeds_after_queued_release_is_canceled
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_release_cancellation.py:176
Functiontest_acquire_proxy_enters_as_the_lock_type
(tmp_path: Path)
tests/core/test_lock.py:300
Functiontest_acquire_proxy_releases_the_read_write_lock_on_exit
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_transactions_release.py:100
Functiontest_acquire_rejects_a_blocking_that_is_not_a_bool
( timeout_locks: tuple[ReadWriteLock | SoftReadWriteLock, ReadWriteLock | SoftReadWriteLock], mode: Li
tests/sqlite/test_transactions_settings.py:122
Functiontest_acquire_rejects_invalid_timeout
( timeout_locks: tuple[ReadWriteLock | SoftReadWriteLock, ReadWriteLock | SoftReadWriteLock], mode: Li
tests/sqlite/test_transactions_settings.py:141
Functiontest_acquire_rejects_non_bool_blocking
(lock_type: type[BaseFileLock], blocking: str | int, tmp_path: Path)
tests/core/test_timeout_validation.py:130
Functiontest_acquire_rejects_non_bool_blocking
( lock_type: type[BaseAsyncFileLock], blocking: str | int, tmp_path: Path )
tests/async_lock/test_acquire.py:74
Functiontest_acquire_release
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_async.py:67
Functiontest_acquire_release_on_exc
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_lock.py:265
Functiontest_acquire_release_read
(lock_file: str)
tests/sqlite/test_transactions.py:22
← previousnext →1,701–1,800 of 3,548, ranked by callers