MCPcopy Create free account
hub / github.com/archlinux/alpm / rsync_changed

Function rsync_changed

dev-scripts/src/sync/mirror/rsync_changes.rs:225–235  ·  view source on GitHub ↗
(#[case] input: &[u8], #[case] changed: &[u8])

Source from the content-addressed store, hash-verified

223 #[case::blank_filename(b">f+++++++++ ", b"")]
224 fn rsync_changed(#[case] input: &[u8], #[case] changed: &[u8]) -> TestResult {
225 assert_eq!(
226 Report::parser(input)?
227 .file_content_updated()?
228 .ok_or("rsync reported no change")?
229 .as_os_str()
230 .as_bytes(),
231 changed
232 );
233 Ok(())
234 }
235
236 #[rstest]
237 #[case::received(
238 b">f+++++++++ received_file.txt",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected