mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-07 00:00:13 +02:00
22 lines
358 B
Rust
22 lines
358 B
Rust
use rand::random;
|
|
|
|
extern crate bytes;
|
|
extern crate rand;
|
|
extern crate byteorder;
|
|
|
|
mod test_append;
|
|
mod test_buf;
|
|
mod test_buf_fill;
|
|
mod test_buf_take;
|
|
mod test_byte_buf;
|
|
mod test_bytes;
|
|
mod test_pool;
|
|
mod test_ring;
|
|
mod test_rope;
|
|
mod test_seq_byte_str;
|
|
mod test_small_byte_str;
|
|
|
|
fn gen_bytes(n: usize) -> Vec<u8> {
|
|
(0..n).map(|_| random()).collect()
|
|
}
|