Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: added tests for moving Cmd instances #19

Merged
merged 1 commit into from
Jul 21, 2024

Conversation

sttk
Copy link
Owner

@sttk sttk commented Jul 21, 2024

This PR adds tests for moving Cmd instances by passing it to a function as a parameter, returning it from a function, using std::mem::replace, using std::mem::swap.

If these operations cause invalid data references within the Cmd instance, it will be necessary to use std::pin::Pin.
However, the test results have shown that these operations does not cause any issues.

@sttk sttk merged commit 3ed4fba into main Jul 21, 2024
7 checks passed
@sttk sttk deleted the add-test-cases-of-moving-cmd branch July 21, 2024 16:50
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.

1 participant