MCPcopy Create free account
hub / github.com/tox-dev/filelock / committed

Function committed

tests/soft/read_write/conftest.py:94–99  ·  view source on GitHub ↗
(files: OsFiles, lock_file: str, root: str, writers: list[str | None])

Source from the content-addressed store, hash-verified

92
93
94def committed(files: OsFiles, lock_file: str, root: str, writers: list[str | None]) -> GenerationLog:
95 files.prepare(root)
96 log = GenerationLog(files, lock_file, root)
97 for writer in writers:
98 assert log.commit(Snapshot(generation=log.latest().generation + 1, writer=writer, readers=frozenset()))
99 return log
100
101
102def make_participant(

Calls 5

commitMethod · 0.95
latestMethod · 0.95
GenerationLogClass · 0.90
SnapshotClass · 0.90
prepareMethod · 0.45

Tested by

no test coverage detected