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 {}
}
}

View file

@ -7,8 +7,6 @@ impl From<Option<u64>> for DecodedLength {
loop {}
}
}
#[cfg(any(feature = "http1", feature = "http2", test))]
const MAX_LEN: u64 = std::u64::MAX - 2;
impl DecodedLength {
pub(crate) const CLOSE_DELIMITED: DecodedLength = DecodedLength(::std::u64::MAX);
pub(crate) const CHUNKED: DecodedLength = DecodedLength(::std::u64::MAX - 1);
@ -58,15 +56,3 @@ impl fmt::Display for DecodedLength {
loop {}
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn sub_if_known() {
loop {}
}
#[test]
fn sub_if_chunked() {
loop {}
}
}