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