Make all tests not output anything

This commit is contained in:
2019-05-29 15:57:20 +02:00
parent a79d5b8aac
commit 03eb6d685b
16 changed files with 78 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ pub mod ops;
pub mod stack;
pub mod pool;
pub mod frame;
pub mod stubs;
#[cfg(feature = "bonus:network")]
pub mod netstack;

6
src/stubs.rs Normal file
View File

@@ -0,0 +1,6 @@
use std::sync::{Arc, Mutex};
use std::io::Cursor;
pub fn output_stub() -> Arc<Mutex<Cursor<Vec<u8>>>> {
Arc::new(Mutex::new(Cursor::new(Vec::new())))
}