Debian Codegraph @

third_party/rust/neqo-http3/src/frames/tests/wtframe.rs

raw
1 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
2 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
3 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
4 // option. This file may not be copied, modified, or distributed
5 // except according to those terms.
6
7 use super::enc_dec_wtframe;
8 use crate::frames::WebTransportFrame;
9
10 #[test]
11 fn wt_close_session() {
12 let f = WebTransportFrame::CloseSession {
13 error: 5,
14 message: "Hello".to_string(),
15 };
16 enc_dec_wtframe(&f, "6843090000000548656c6c6f", 0);
17 }