Fix imports for wasm_test.
This commit is contained in:
@@ -2,17 +2,12 @@
|
||||
#![feature(exit_status_error)]
|
||||
use std::io::Read;
|
||||
|
||||
use organic::settings::GlobalSettings;
|
||||
use wasm::wasm_parse_org;
|
||||
|
||||
mod error;
|
||||
mod wasm;
|
||||
use organic::wasm::compare::wasm_run_anonymous_compare;
|
||||
|
||||
#[cfg(feature = "tracing")]
|
||||
use crate::init_tracing::init_telemetry;
|
||||
#[cfg(feature = "tracing")]
|
||||
use crate::init_tracing::shutdown_telemetry;
|
||||
use crate::wasm::compare::wasm_run_anonymous_compare_with_settings;
|
||||
#[cfg(feature = "tracing")]
|
||||
mod init_tracing;
|
||||
|
||||
@@ -41,11 +36,9 @@ async fn main_body() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let args = std::env::args().skip(1);
|
||||
if args.is_empty() {
|
||||
let org_contents = read_stdin_to_string()?;
|
||||
let wasm_result = wasm_parse_org(org_contents.as_str());
|
||||
println!("{}", serde_json::to_string(&wasm_result)?);
|
||||
if wasm_run_anonymous_compare_with_settings(org_contents, &GlobalSettings::default(), false)
|
||||
.await?
|
||||
{
|
||||
// let wasm_result = wasm_parse_org(org_contents.as_str());
|
||||
// println!("{}", serde_json::to_string(&wasm_result)?);
|
||||
if wasm_run_anonymous_compare(org_contents).await? {
|
||||
} else {
|
||||
Err("Diff results do not match.")?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user