Procházet zdrojové kódy

chunkers.failing: fix docstring

Thomas Waldmann před 1 měsícem
rodič
revize
631ef99e3f
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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: