← Về thư mục
tests/test_token_mint_atomicity.py
- _mint_under_barrier · function · L44-L52 — def _mint_under_barrier(data_dir: str, barrier, results) -> None
- _race_to_mint · function · L55-L84 — def _race_to_mint(data_dir: Path, workers: int) -> list[str]
- test_concurrent_daemons_mint_exactly_one_token · function · L87-L118 — def test_concurrent_daemons_mint_exactly_one_token(tmp_path)
- test_a_minter_that_loses_returns_the_token_on_disk · function · L121-L141 — def test_a_minter_that_loses_returns_the_token_on_disk(tmp_path, monkeypatch)
- blind_the_first_read · function · L134-L136 — def blind_the_first_read(data_dir)
- test_the_mint_fsyncs_the_file_and_its_directory · function · L144-L165 — def test_the_mint_fsyncs_the_file_and_its_directory(tmp_path, monkeypatch)
- recording_fsync · function · L154-L159 — def recording_fsync(fd)
- test_an_empty_token_file_is_refused_rather_than_overwritten · function · L168-L185 — def test_an_empty_token_file_is_refused_rather_than_overwritten(tmp_path)