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

Method truncate

src/borg/testsuite/remote_test.py:182–183  ·  view source on GitHub ↗
(self, n=None)

Source from the content-addressed store, hash-verified

180 raise OSError(errno.ENOSPC, "foo")
181
182 def truncate(self, n=None):
183 pass
184
185 iterator = cache.get_many([H(1), H(2), H(3)])
186 assert pdchunk(next(iterator)) == b"1234"

Callers 10

flushMethod · 0.80
extract_itemMethod · 0.80
safe_unlinkFunction · 0.80
test_multiple_loggersFunction · 0.80
test_cache_corruptionMethod · 0.80
test_sparse_fileFunction · 0.80
test_extract_continueFunction · 0.80
make_sparsefileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected