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

More test cases for Drop #1284

Closed
4 tasks done
YoshikiTakashima opened this issue Jun 16, 2022 · 0 comments
Closed
4 tasks done

More test cases for Drop #1284

YoshikiTakashima opened this issue Jun 16, 2022 · 0 comments
Assignees
Labels
T-Good First Issue Good for newcomers

Comments

@YoshikiTakashima
Copy link
Contributor

As per request from @danielsn, I'm adding more test cases for the Drop trait.

The following cases are going to be added.

  • Enum drop. Construct and drop an enum. Assert the following:
    • That either one of the drop function will be called
    • That both are not called
  • Move across the sync channel. Check drop side effect
  • Move Closure. Check that drop is called when object is inside move closure.
  • Rc<RefCell<T>>: Common pattern for nested shared inner mutability. Drop and mutation effects should be asserted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Good First Issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant