Files
bytes/test/test.rs
T

28 lines
394 B
Rust
Raw Normal View History

use rand::random;
extern crate bytes;
extern crate rand;
2016-07-20 22:47:41 +02:00
extern crate byteorder;
2016-08-10 15:45:31 -07:00
// == Buf
2016-07-23 09:49:59 -07:00
mod test_append;
2016-09-13 15:30:44 -07:00
mod test_block;
2015-03-24 22:10:29 -07:00
mod test_buf;
mod test_buf_fill;
2016-09-23 22:53:52 -07:00
mod test_slice_buf;
2016-08-31 12:07:44 -07:00
mod test_mut_buf;
2015-04-09 23:18:16 +02:00
mod test_ring;
2016-08-10 15:45:31 -07:00
// == Bytes
mod test_bytes;
mod test_rope;
2016-08-10 15:45:31 -07:00
mod test_seq;
mod test_small;
// == Pool
2016-08-11 01:36:16 -07:00
// mod test_pool;
fn gen_bytes(n: usize) -> Vec<u8> {
(0..n).map(|_| random()).collect()
}