summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2022-05-01 16:55:14 +0000
committeredef <edef@unfathomable.blue>2022-05-01 16:55:14 +0000
commit83887753e540d2e7a625717acdd247d79bcda231 (patch)
treee51045a17837727bbab68cbce27ca3459b5dd2dd /ripple
parenta53b951b5597ed1be46946073839032b0e2116df (diff)
downloadunf-legacy-83887753e540d2e7a625717acdd247d79bcda231.tar.zst
ripple/fossil/chunker: clarify MAX_CHUNK_SIZE test
Change-Id: Ia5adb5a9056fd0e9ddcd8667c56129219b9d6f52
Diffstat (limited to 'ripple')
-rw-r--r--ripple/fossil/src/chunker/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/ripple/fossil/src/chunker/mod.rs b/ripple/fossil/src/chunker/mod.rs
index 3bc160e..3451990 100644
--- a/ripple/fossil/src/chunker/mod.rs
+++ b/ripple/fossil/src/chunker/mod.rs
@@ -163,7 +163,9 @@ mod test {
 	}
 
 	#[test]
-	fn all_zeroes() {
+	fn max_chunk() {
+		// all-zero byte sequences don't contain any split points,
+		// so the chunker is forced to limit the chunk size
 		assert_eq!(
 			super::Chunker::from(&[0u8; super::MAX_CHUNK_SIZE + 1])
 				.next()