Debian Codegraph @

third_party/rust/neqo-transport/tests/stats.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 neqo_transport::ecn;
8
9 #[test]
10 fn crate_exports_ecn_types() {
11 let stats = neqo_transport::Stats::default();
12
13 _ = stats.ecn_path_validation[ecn::ValidationOutcome::Capable];
14 _ = stats.ecn_path_validation
15 [ecn::ValidationOutcome::NotCapable(ecn::ValidationError::BlackHole)];
16 }