Skip to content

Commit

Permalink
Bump coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Aug 12, 2024
1 parent 01f8ad3 commit bb7d9c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 0 additions & 6 deletions neqo-http3/src/frames/hframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ impl From<HFrameType> for u64 {
}
}

impl From<u64> for HFrameType {
fn from(t: u64) -> Self {
Self(t)
}
}

// data for DATA frame is not read into HFrame::Data.
#[derive(PartialEq, Eq, Debug)]
pub enum HFrame {
Expand Down
11 changes: 10 additions & 1 deletion neqo-http3/src/stream_type_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ mod tests {
WEBTRANSPORT_UNI_STREAM,
};
use crate::{
control_stream_local::HTTP3_UNI_STREAM_TYPE_CONTROL, frames::H3_FRAME_TYPE_HEADERS,
control_stream_local::HTTP3_UNI_STREAM_TYPE_CONTROL,
frames::{H3_FRAME_TYPE_HEADERS, H3_FRAME_TYPE_SETTINGS},
CloseType, Error, NewStreamType, ReceiveOutput, RecvStream, Res,
};

Expand Down Expand Up @@ -433,6 +434,14 @@ mod tests {
)),
true,
);

let mut t = Test::new(StreamType::BiDi, Role::Server);
t.decode(
&[H3_FRAME_TYPE_SETTINGS.into()],
true,
&Err(Error::HttpFrame),
true,
);
}

#[test]
Expand Down

0 comments on commit bb7d9c5

Please sign in to comment.