MCPcopy Create free account

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

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

Functiontest_hard_link_in_a_shared_directory_is_kept_from_the_callback
(tmp_path: Path)
tests/native/test_unix.py:136
Functiontest_hard_link_is_locked_where_no_other_account_can_misdirect_a_callback
( tmp_path: Path, directory_mode: int, on_acquired: Callable[[int], None] | None )
tests/native/test_unix.py:161
Functiontest_hard_linked_names_share_a_native_lock_without_a_callback
(tmp_path: Path)
tests/native/test_unix.py:173
Functiontest_has_explicit_mode
(lock_type: type[BaseFileLock], mode: int, expected: bool, tmp_path: Path)
tests/core/test_settings.py:39
Functiontest_has_fcntl_matches_native_unix_alias
()
tests/test_public_api.py:46
Functiontest_heartbeat_collects_temporary_files_when_the_generation_list_is_overfull
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_sweep.py:113
Functiontest_heartbeat_ignores_a_broken_successor_record
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_participant_heartbeat.py:26
Functiontest_heartbeat_ignores_a_sweep_error_after_generation_list_overflow
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture, error: OSError | TreeReplacedError )
tests/soft/read_write/test_sweep.py:139
Functiontest_heartbeat_keeps_an_intact_record_after_short_reads
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_participant_heartbeat.py:151
Functiontest_heartbeat_leaves_a_file_linked_over_the_holder_record_alone
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_participant_heartbeat.py:126
Functiontest_heartbeat_leaves_a_file_with_the_holder_record_inode_number_alone
( lock_file: str, files: OsFiles, root: str )
tests/soft/read_write/test_participant_heartbeat.py:138
Functiontest_heartbeat_reports_a_junction_tree_as_lost
( # pragma: win32 cover lock_file: str, tmp_path: Path, create_junction: Callable[[Path, Path], None] )
tests/soft/read_write/test_heartbeat.py:180
Functiontest_heartbeat_reports_a_removed_holder_record
(lock_file: str)
tests/soft/read_write/test_heartbeat.py:137
Functiontest_heartbeat_reports_a_replaced_tree_as_lost
(lock_file: str, files: OsFiles, mocker: MockerFixture)
tests/soft/read_write/test_participant_heartbeat.py:46
Functiontest_heartbeat_reports_a_symlinked_tree_as_lost
( lock_file: str, tmp_path: Path )
tests/soft/read_write/test_heartbeat.py:156
Functiontest_heartbeat_reports_eviction_and_stops
(lock_file: str)
tests/soft/read_write/test_heartbeat.py:92
Functiontest_heartbeat_reports_refresh_failure_after_host_suspend
( lock_file: str, mocker: MockerFixture )
tests/soft/read_write/test_heartbeat.py:265
Functiontest_heartbeat_reports_refresh_failures_that_outlast_the_margin
(lock_file: str, mocker: MockerFixture)
tests/soft/read_write/test_heartbeat.py:243
Functiontest_heartbeat_reports_the_refresh_filesystem_error
(lock_file: str, files: OsFiles, mocker: MockerFixture)
tests/soft/read_write/test_participant_heartbeat.py:36
Functiontest_heartbeat_survives_a_transient_refresh_error
(lock_file: str, mocker: MockerFixture)
tests/soft/read_write/test_heartbeat.py:223
Functiontest_heartbeat_with_a_symlink_refused_by_platform_errno_is_lost
( # pragma: needs link-dir-fd lock_file: str, files: OsFiles, root: str, tmp_path: Path,
tests/soft/read_write/test_participant_heartbeat.py:86
Functiontest_heartbeat_with_the_tree_swapped_for_a_symlink_is_lost
( # pragma: needs link-dir-fd lock_file: str, files: OsFiles, root: str, tmp_path: Path )
tests/soft/read_write/test_participant_heartbeat.py:63
Functiontest_heartbeat_without_a_published_record_is_lost
(lock_file: str, files: OsFiles)
tests/soft/read_write/test_participant_heartbeat.py:54
Functiontest_held_lease_records_the_process_start_token
(tmp_path: Path)
tests/soft/exclusive/test_marker.py:32
Functiontest_hold_canceled_while_waiting_takes_its_ticket_out
()
tests/async_lock/test_transitions.py:68
Functiontest_hold_for_acquire_deadline_preempts_long_poll
()
tests/async_lock/test_transitions.py:50
Functiontest_hold_interrupted_while_joining_leaves_the_gate_free
( mocker: MockerFixture, entry: str, *, joined: bool )
tests/async_lock/test_transitions.py:177
Functiontest_hold_interrupted_while_waiting_takes_its_ticket_out
()
tests/async_lock/test_transitions.py:143
Functiontest_hold_waits_for_a_predecessor_before_entering
()
tests/async_lock/test_transitions.py:19
Functiontest_holder_lease_ignores_what_it_cannot_trust
(record: bytes | None)
tests/soft/read_write/test_storage_records.py:41
Functiontest_holder_record_carries_its_lease
(lease: float)
tests/soft/read_write/test_storage_records.py:23
Functiontest_holder_record_keeps_its_length_across_nonces
()
tests/soft/read_write/test_storage_records.py:12
Functiontest_hook_cannot_leave_acquire_unheld
(tmp_path: Path, *, force: bool)
tests/core/test_on_acquired.py:215
Functiontest_host_name_escapes_out_of_grammar_bytes
(raw: str, expected: str, mocker: MockerFixture)
tests/identity/test_host.py:89
Functiontest_host_name_ignores_drive_root_proc_path
(mocker: MockerFixture)
tests/identity/test_host.py:132
Functiontest_host_name_keeps_a_namespace_apart_from_a_lookalike_host
(mocker: MockerFixture)
tests/identity/test_host.py:123
Functiontest_host_name_keeps_over_long_names_apart_past_the_limit
(mocker: MockerFixture)
tests/identity/test_host.py:95
Functiontest_host_name_names_the_pid_namespace
(namespace: int | OSError, expected: str, mocker: MockerFixture)
tests/identity/test_host.py:116
Functiontest_host_suspend_renews_a_waiters_token
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture, suspended_host: tuple[list[float], lis
tests/soft/read_write/test_participant.py:143
Functiontest_import_adds_audit_hook_only_where_settrace_survives_it
()
tests/core/test_fork_audit.py:26
Functiontest_import_succeeds_without_os_link
()
tests/test_public_api.py:14
Functiontest_import_without_fcntl_uses_soft_aliases_and_descriptor_errors
()
tests/native/test_unix_fallback.py:46
Functiontest_infinite_timeout_gives_deadlock_not_hang
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_registry.py:47
Functiontest_inherited_idle_async_lock_rejects_acquire
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/core/test_fork_ownership.py:165
Functiontest_inherited_idle_lock_rejects_acquire
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_fork_ownership.py:145
Functiontest_init_sets_attributes
(lock_file: str)
tests/sqlite/test_lock_settings.py:134
Functiontest_interrupted_at_any_call_reports_whether_it_holds
( tmp_path: Path, lock_type: type[BaseFileLock], thread_local: bool, operation: Literal["acqui
tests/core/test_interruption.py:128
Functiontest_interrupted_exchange_keeps_the_recovery_marker
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_probe.py:222
Functiontest_interrupted_marker_inspection_closes_its_descriptor
( lock_path: Path, inspect: Callable[[str, ExitStack], object] )
tests/soft/exclusive/test_publication_rollback.py:247
Functiontest_interrupted_nested_acquire_preserves_initial_depth
( tmp_path: Path, mocker: MockerFixture, interrupt: list[type[KeyboardInterrupt] | None] )
tests/core/test_on_acquired.py:246
Functiontest_interrupted_open_keeps_existing_private_name
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_probe.py:241
Functiontest_interrupted_open_preserves_marker_when_exchange_fails
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_probe.py:210
Functiontest_interrupted_probe_cleanup_retires_its_file
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture, cleanup: str )
tests/native/test_unix_probe.py:79
Functiontest_interrupted_probe_leaves_a_replacement_alone
( tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_probe.py:105
Functiontest_interrupted_probe_leaves_directory_empty
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture, anonymous: int )
tests/native/test_unix_probe.py:38
Functiontest_interrupted_publication_keeps_replacement
( tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_probe.py:190
Functiontest_interrupted_release_keeps_a_new_threads_hold
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_release_interruption.py:74
Functiontest_interrupted_release_retries_after_another_thread_nests
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_release_interruption.py:141
Functiontest_interrupted_release_wait_leaves_the_worker_pending
( deferred_release: tuple[StrictSoftFileLock, ReleasePendingError, threading.Event], mocker: MockerFixture
tests/soft/strict/test_release_interruption.py:173
Functiontest_interrupted_release_while_entering_the_gate_retries
( tmp_path: Path, mocker: MockerFixture, monkeypatch: pytest.MonkeyPatch )
tests/core/test_release_interruption.py:115
Functiontest_interrupted_rollback_removes_only_its_own_marker
( # pragma: win32 no cover tmp_path: Path, mocker: MockerFixture, expected: dict[str, bytes], inspect: bo
tests/filesystem/test_exchange_recovery.py:274
Functiontest_interrupted_unix_create_honors_disabled_fallback
( tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_probe.py:140
Functiontest_interrupted_unix_create_keeps_native_file
(tmp_path: Path)
tests/native/test_unix_probe.py:26
Functiontest_interrupted_unix_create_marks_fallback_placeholder
( tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_probe.py:130
Functiontest_invalid_close_error_policy_rejected
(tmp_path: Path)
tests/core/test_context_errors.py:343
Functiontest_invalid_context_error_policy_rejected
(tmp_path: Path)
tests/core/test_context_errors.py:237
Functiontest_invalid_release_deadline_keeps_hold
(lock_path: Path, timeout: float)
tests/soft/strict/test_release.py:27
Functiontest_invalid_soft_lifetime_does_not_warn
( lock_type: type[SoftFileLock | AsyncSoftFileLock], entry_point: Literal["constructor", "setter"], tmp_pa
tests/soft/exclusive/test_lock_lifetime.py:78
Functiontest_is_lock_held_by_us
(lock_path: Path, content: str, expected: bool)
tests/soft/exclusive/test_lock.py:61
Functiontest_is_lock_held_by_us_checks_start_token
(lock_path: Path, offset: int, *, expected: bool)
tests/soft/exclusive/test_lock.py:71
Functiontest_is_lock_held_by_us_fails_closed_without_own_start_token
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_lock.py:79
Functiontest_is_lock_held_by_us_without_a_lock_file
(lock_path: Path)
tests/soft/exclusive/test_lock.py:49
Functiontest_late_heartbeat_tick_does_not_stamp_a_later_hold
(lock_file: str)
tests/soft/read_write/test_heartbeat.py:349
Functiontest_latest_on_a_current_head_reads_it_then_probes_one_name
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_compaction.py:94
Functiontest_latest_probes_across_a_compaction_hole
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_generations.py:144
Functiontest_lazy_import_dir_lists_every_public_name
()
tests/test_lazy_import.py:116
Functiontest_lazy_import_lock_held_at_exit_releases_as_eager
( tmp_path: Path, hold: str, lazy_imports: str )
tests/test_lazy_import.py:194
Functiontest_lazy_import_missing_filelock_module_raises
(module: str, attribute: str)
tests/test_lazy_import.py:112
Functiontest_lazy_import_missing_runtime_type_does_not_raise_at_exit
()
tests/test_lazy_import.py:133
Functiontest_lazy_import_missing_sqlite3_leaves_read_write_lock_none
(blocked: str, missing: str, attribute: str)
tests/test_lazy_import.py:78
Functiontest_lazy_import_resolves_asyncio_submodule
()
tests/test_lazy_import.py:66
Functiontest_lazy_import_resolves_every_public_name
(script: str)
tests/test_lazy_import.py:62
Functiontest_lazy_import_skips_asyncio_and_sqlite3
()
tests/test_lazy_import.py:20
Functiontest_lazy_import_unknown_name_raises
()
tests/test_lazy_import.py:127
Functiontest_leaked_acquired_singleton_is_closed_on_teardown
(lock_file: str)
tests/soft/read_write/test_lock_singleton.py:189
Functiontest_lease_accepts_reentry_after_an_old_heartbeat_reports_late
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease.py:147
Functiontest_lease_ages_out_a_malformed_record
(tmp_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_marker.py:76
Functiontest_lease_can_be_released_from_the_compromise_callback
(marker: Path)
tests/soft/test_lease_release.py:258
Functiontest_lease_claim_does_not_survive_fork
(marker: Path, *, thread_local: bool)
tests/soft/test_lease.py:81
Functiontest_lease_defaults_the_heartbeat_below_the_duration
(marker: Path)
tests/soft/test_lease_settings.py:80
Functiontest_lease_does_not_age_out_a_live_exclusive_owner
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_settings.py:126
Functiontest_lease_does_not_expire_a_strict_holder
(marker: Path)
tests/soft/test_lease_settings.py:36
Functiontest_lease_dropped_on_its_heartbeat_thread_is_released_there
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_finalization.py:180
Functiontest_lease_dropped_where_it_cannot_be_released_stops_its_heartbeat
(marker: Path)
tests/soft/test_lease_finalization.py:51
Functiontest_lease_dropped_while_held_releases_its_marker
(marker: Path)
tests/soft/test_lease_finalization.py:38
Functiontest_lease_dropped_while_its_heartbeat_finds_the_claim_lost_reports_nothing
( marker: Path, mocker: MockerFixture )
tests/soft/test_lease_finalization.py:108
Functiontest_lease_drops_lifetime_with_a_warning
(marker: Path)
tests/soft/test_lease_settings.py:86
Functiontest_lease_finalized_inside_its_heartbeat_wait_is_released
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_finalization.py:208
Functiontest_lease_force_released_for_an_exited_thread_stops_that_holds_heartbeat
(marker: Path)
tests/soft/test_lease.py:255
Functiontest_lease_hands_back_the_claim_when_the_heartbeat_cannot_start
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease.py:268
← previousnext →2,301–2,400 of 3,548, ranked by callers