MCPcopy
hub / github.com/borgbackup/borg / test_fdatasync_basic

Function test_fdatasync_basic

src/borg/testsuite/platform/darwin_test.py:100–105  ·  view source on GitHub ↗

Integration: fdatasync completes on a real file without error.

()

Source from the content-addressed store, hash-verified

98
99
100def test_fdatasync_basic():
101 """Integration: fdatasync completes on a real file without error."""
102 with tempfile.NamedTemporaryFile() as tmp:
103 tmp.write(b"test data for fdatasync")
104 tmp.flush()
105 fdatasync(tmp.fileno())
106
107
108def test_sync_dir_basic():

Callers

nothing calls this directly

Calls 3

filenoMethod · 0.80
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected