()
| 335 | |
| 336 | #[tokio::test] |
| 337 | async fn receiver_drop() { |
| 338 | let (tx, rx) = create::<i32>(2); |
| 339 | drop(rx); |
| 340 | |
| 341 | assert!(tx.is_closed()); |
| 342 | // Should receive BufferClosedError when trying to send after receiver is dropped |
| 343 | assert!(tx.send(1).is_err()); |
| 344 | } |
| 345 | |
| 346 | #[tokio::test] |
| 347 | async fn empty_buffer() { |
nothing calls this directly
no outgoing calls
no test coverage detected