Ver Fonte

chunkers.failing: fix docstring

Thomas Waldmann há 1 mês atrás
pai
commit
631ef99e3f
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      src/borg/chunkers/failing.py

+ 3 - 1
src/borg/chunkers/failing.py

@@ -12,7 +12,9 @@ class ChunkerFailing:
     """
     This is a very simple chunker for testing purposes.
 
-    Reads block_size chunks, starts failing at block <fail_start>, <fail_count> failures, then succeeds.
+    Reads block_size chunks. The map parameter controls behavior per block:
+    'R' = successful read, 'E' = I/O Error. Blocks beyond the map length
+    will have the same behavior as the last map character.
     """
 
     def __init__(self, block_size: int, map: str) -> None: