mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-08 00:00:26 +02:00
* Get rid of `ByteStr` trait * `Bytes` is not a concrete type * Add `BlockBuf` * Delete lots of cruft * Performance work
26 lines
356 B
Rust
26 lines
356 B
Rust
use rand::random;
|
|
|
|
extern crate bytes;
|
|
extern crate rand;
|
|
extern crate byteorder;
|
|
|
|
// == Buf
|
|
mod test_append;
|
|
mod test_buf;
|
|
mod test_buf_fill;
|
|
mod test_byte_buf;
|
|
mod test_ring;
|
|
|
|
// == Bytes
|
|
mod test_bytes;
|
|
mod test_rope;
|
|
mod test_seq;
|
|
mod test_small;
|
|
|
|
// == Pool
|
|
mod test_pool;
|
|
|
|
fn gen_bytes(n: usize) -> Vec<u8> {
|
|
(0..n).map(|_| random()).collect()
|
|
}
|