Skip to content

Tests: optimize clone usage in integration tests#960

Merged
spacebear21 merged 1 commit intopayjoin:masterfrom
bc1cindy:fix/ref-args-tests-402
Aug 17, 2025
Merged

Tests: optimize clone usage in integration tests#960
spacebear21 merged 1 commit intopayjoin:masterfrom
bc1cindy:fix/ref-args-tests-402

Conversation

@bc1cindy
Copy link
Contributor

@bc1cindy bc1cindy commented Aug 15, 2025

Part of #402 - Remove unnecessary .clone() calls from HTTP requests and proposal handling.

Remove 16 unnecessary .clone() calls from HTTP requests, session creation,
and proposal handling to improve performance.

  • Remove clones from url/directory/ohttp_keys parameters (9 locations)
  • Remove clones from HTTP request url/body parameters (6 locations)
  • Remove clone from proposal response handling (1 location)
  • Reduces total clone count from 35 to 19 (45% reduction)

All tests pass locally including clippy and formatting checks.

@coveralls
Copy link
Collaborator

coveralls commented Aug 15, 2025

Pull Request Test Coverage Report for Build 17013058829

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.314%

Totals Coverage Status
Change from base Build 16993614179: 0.0%
Covered Lines: 7726
Relevant Lines: 8951

💛 - Coveralls

@bc1cindy
Copy link
Contributor Author

The Format test in CI continues to not run and this appears to be related to #956.

@bc1cindy bc1cindy marked this pull request as ready for review August 15, 2025 21:30
Remove 16 unnecessary .clone() calls from HTTP requests, session creation,
and proposal handling to improve performance.

- Remove clones from url/directory/ohttp_keys parameters (9 locations)
- Remove clones from HTTP request url/body parameters (6 locations)
- Remove clone from proposal response handling (1 location)
- Reduces total clone count from 35 to 19 (45% reduction)

All tests pass locally including clippy and formatting checks.
@bc1cindy
Copy link
Contributor Author

The Format test in CI continues to not run and this appears to be related to #956.

It was a conflict with homebrew rust! Uninstalled it and now the format test works perfectly in CI!

All checks passing

@spacebear21 spacebear21 merged commit 875bb24 into payjoin:master Aug 17, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants