Improved tests semantics

This commit is contained in:
Syrus 2020-04-15 18:18:18 -07:00
parent 37afcd33df
commit cce851f22f
4 changed files with 8 additions and 8 deletions

View File

@ -1,8 +1,8 @@
mod utils; mod utils;
use crate::utils::stdio::StdioCapturer; use crate::utils::StdioCapturer;
use anyhow::{anyhow, bail}; use anyhow::anyhow;
use wasmer::compiler::{compile_with, compiler_for_backend, Backend}; use wasmer::compiler::{compile_with, compiler_for_backend};
use wasmer_emscripten::{generate_emscripten_env, run_emscripten_instance, EmscriptenGlobals}; use wasmer_emscripten::{generate_emscripten_env, run_emscripten_instance, EmscriptenGlobals};
use lazy_static::lazy_static; use lazy_static::lazy_static;

View File

@ -8,8 +8,7 @@ use std::path::Path;
feature = "backend-singlepass" feature = "backend-singlepass"
)))] )))]
compile_error!("No compiler backend detected: please specify at least one compiler backend!"); compile_error!("No compiler backend detected: please specify at least one compiler backend!");
use anyhow::bail;
use wasmer::compiler::Backend;
use wasmer_wast::Wast; use wasmer_wast::Wast;
// The generated tests (from build.rs) look like: // The generated tests (from build.rs) look like:

View File

@ -1,5 +1,6 @@
mod backend; mod backend;
mod file_descriptor; mod file_descriptor;
pub mod stdio; mod stdio;
pub use backend::get_backend_from_str; pub use backend::get_backend_from_str;
pub use stdio::StdioCapturer;

View File

@ -1,7 +1,7 @@
mod utils; mod utils;
use crate::utils::stdio::StdioCapturer; use crate::utils::StdioCapturer;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use wasmer::compiler::{compile_with, compiler_for_backend, Backend}; use wasmer::compiler::{compile_with, compiler_for_backend};
use wasmer::Func; use wasmer::Func;
use wasmer_wasi::state::WasiState; use wasmer_wasi::state::WasiState;
use wasmer_wasi::{generate_import_object_from_state, get_wasi_version}; use wasmer_wasi::{generate_import_object_from_state, get_wasi_version};