This commit is contained in:
nora 2023-03-07 14:18:23 +01:00
parent b4ac40748d
commit b3d4232a00
7 changed files with 0 additions and 754 deletions

View file

@ -101,8 +101,6 @@ pub struct Sender {
data_tx: BodySender,
trailers_tx: Option<TrailersSender>,
}
const WANT_PENDING: usize = 1;
const WANT_READY: usize = 2;
impl Body {
/// Create an empty `Body` stream.
///
@ -268,45 +266,3 @@ impl fmt::Debug for Sender {
loop {}
}
}
#[cfg(test)]
mod tests {
use std::mem;
use std::task::Poll;
use super::{Body, DecodedLength, HttpBody, Sender, SizeHint};
#[test]
fn test_size_of() {
loop {}
}
#[test]
fn size_hint() {
loop {}
}
#[tokio::test]
async fn channel_abort() {
loop {}
}
#[tokio::test]
async fn channel_abort_when_buffer_is_full() {
loop {}
}
#[test]
fn channel_buffers_one() {
loop {}
}
#[tokio::test]
async fn channel_empty() {
loop {}
}
#[test]
fn channel_ready() {
loop {}
}
#[test]
fn channel_wanter() {
loop {}
}
#[test]
fn channel_notices_closure() {
loop {}
}
}