Skip to content

Document test prerequisites#2168

Merged
oferchen merged 1 commit into
masterfrom
achieve-parity-with-upstream-rsync-3.4.1
Nov 20, 2025
Merged

Document test prerequisites#2168
oferchen merged 1 commit into
masterfrom
achieve-parity-with-upstream-rsync-3.4.1

Conversation

@oferchen
Copy link
Copy Markdown
Owner

Summary

  • add a development prerequisites section noting the required cargo-nextest install
  • mention optional cargo-llvm-cov setup for local coverage generation

Testing

  • cargo test --all-features --workspace
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo nextest run --all-features --workspace (fails: cargo-nextest not installed in environment)

Codex Task

@oferchen oferchen merged commit 0eef048 into master Nov 20, 2025
5 checks passed
@oferchen oferchen deleted the achieve-parity-with-upstream-rsync-3.4.1 branch November 20, 2025 11:08
oferchen added a commit that referenced this pull request May 14, 2026
…y) (#4055)

* feat: server-side tolerance for unknown --info tokens

Mirror upstream's parse_output_words() guard so the server side
silently skips unknown info-flag names. A newer client can forward
info tokens this build has not learned yet without breaking the
transfer, while the client-side parser still rejects unknown tokens
so typos surface at the source.

upstream: options.c parse_output_words - the `!am_server` check at
options.c:465 short-circuits the `Unknown --info item` exit.

Refs #2168

* fix: gate unused apply() wrapper behind cfg(test)

The apply() helper is only invoked from unit tests now that production
code routes through apply_with_mode(). Clippy's dead-code lint flagged
it under -D warnings. Gating it with #[cfg(test)] keeps tests compiling
while satisfying the lib build.

* fix: derive Debug on InfoFlagSettings for expect_err in tests

* fix: replace err().expect() with expect_err() in test sites

clippy::err_expect lint became active after deriving Debug on
InfoFlagSettings; the lint requires the success type to implement
Debug to suggest the simpler expect_err form.

* fix: derive Debug on DebugFlagSettings for expect_err in tests

* fix: convert remaining multi-line err().expect() to expect_err()
oferchen added a commit that referenced this pull request May 18, 2026
…y) (#4055)

* feat: server-side tolerance for unknown --info tokens

Mirror upstream's parse_output_words() guard so the server side
silently skips unknown info-flag names. A newer client can forward
info tokens this build has not learned yet without breaking the
transfer, while the client-side parser still rejects unknown tokens
so typos surface at the source.

upstream: options.c parse_output_words - the `!am_server` check at
options.c:465 short-circuits the `Unknown --info item` exit.

Refs #2168

* fix: gate unused apply() wrapper behind cfg(test)

The apply() helper is only invoked from unit tests now that production
code routes through apply_with_mode(). Clippy's dead-code lint flagged
it under -D warnings. Gating it with #[cfg(test)] keeps tests compiling
while satisfying the lib build.

* fix: derive Debug on InfoFlagSettings for expect_err in tests

* fix: replace err().expect() with expect_err() in test sites

clippy::err_expect lint became active after deriving Debug on
InfoFlagSettings; the lint requires the success type to implement
Debug to suggest the simpler expect_err form.

* fix: derive Debug on DebugFlagSettings for expect_err in tests

* fix: convert remaining multi-line err().expect() to expect_err()
oferchen added a commit that referenced this pull request May 18, 2026
…y) (#4055)

* feat: server-side tolerance for unknown --info tokens

Mirror upstream's parse_output_words() guard so the server side
silently skips unknown info-flag names. A newer client can forward
info tokens this build has not learned yet without breaking the
transfer, while the client-side parser still rejects unknown tokens
so typos surface at the source.

upstream: options.c parse_output_words - the `!am_server` check at
options.c:465 short-circuits the `Unknown --info item` exit.

Refs #2168

* fix: gate unused apply() wrapper behind cfg(test)

The apply() helper is only invoked from unit tests now that production
code routes through apply_with_mode(). Clippy's dead-code lint flagged
it under -D warnings. Gating it with #[cfg(test)] keeps tests compiling
while satisfying the lib build.

* fix: derive Debug on InfoFlagSettings for expect_err in tests

* fix: replace err().expect() with expect_err() in test sites

clippy::err_expect lint became active after deriving Debug on
InfoFlagSettings; the lint requires the success type to implement
Debug to suggest the simpler expect_err form.

* fix: derive Debug on DebugFlagSettings for expect_err in tests

* fix: convert remaining multi-line err().expect() to expect_err()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant