Added test in clipboard.rs
I added a test case in clipboard.rs to make sure it reads and writes data correctly.
@microsoft-github-policy-service agree
PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
| ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪ |
| 🧪 PR contains tests |
| 🔒 No security concerns identified |
⚡ Recommended focus areas for reviewTest placement
mod tests block is declared inside the impl Clipboard scope, which will result in a syntax error. Test modules should be defined at the crate or file root, outside of impl blocks. |
Sorry, my mistake for the code not compiling. I'll try to fix it. Thank you for reviewing my code.
But this code in general doesn't need unit tests, because it's so trivial. People often forget to consider that even test code needs to be maintained, just like any other code. It's not a good trade-off.