From 481a13a3d67266892686690017e739a09b7bafc0 Mon Sep 17 00:00:00 2001 From: jcamiel Date: Fri, 17 Nov 2023 10:16:56 +0100 Subject: [PATCH] Rename core module to result. --- packages/hurl/src/runner/assert.rs | 2 +- packages/hurl/src/runner/capture.rs | 2 +- packages/hurl/src/runner/entry.rs | 2 +- packages/hurl/src/runner/hurl_file.rs | 2 +- packages/hurl/src/runner/mod.rs | 4 ++-- packages/hurl/src/runner/predicate.rs | 2 +- packages/hurl/src/runner/response.rs | 2 +- packages/hurl/src/runner/{core.rs => result.rs} | 0 8 files changed, 8 insertions(+), 8 deletions(-) rename packages/hurl/src/runner/{core.rs => result.rs} (100%) diff --git a/packages/hurl/src/runner/assert.rs b/packages/hurl/src/runner/assert.rs index 0ad667403..08cede6ba 100644 --- a/packages/hurl/src/runner/assert.rs +++ b/packages/hurl/src/runner/assert.rs @@ -20,11 +20,11 @@ use std::collections::HashMap; use hurl_core::ast::*; use crate::http; -use crate::runner::core::AssertResult; use crate::runner::error::{Error, RunnerError}; use crate::runner::filter::eval_filters; use crate::runner::predicate::eval_predicate; use crate::runner::query::eval_query; +use crate::runner::result::AssertResult; use crate::runner::Value; impl AssertResult { diff --git a/packages/hurl/src/runner/capture.rs b/packages/hurl/src/runner/capture.rs index e2b43b083..27241e852 100644 --- a/packages/hurl/src/runner/capture.rs +++ b/packages/hurl/src/runner/capture.rs @@ -20,10 +20,10 @@ use std::collections::HashMap; use hurl_core::ast::*; use crate::http; -use crate::runner::core::CaptureResult; use crate::runner::error::{Error, RunnerError}; use crate::runner::filter::eval_filters; use crate::runner::query::eval_query; +use crate::runner::result::CaptureResult; use crate::runner::template::eval_template; use crate::runner::Value; diff --git a/packages/hurl/src/runner/entry.rs b/packages/hurl/src/runner/entry.rs index 4918d7905..918b1c148 100644 --- a/packages/hurl/src/runner/entry.rs +++ b/packages/hurl/src/runner/entry.rs @@ -22,10 +22,10 @@ use hurl_core::ast::*; use crate::http; use crate::http::ClientOptions; -use crate::runner::core::{AssertResult, EntryResult}; use crate::runner::error::{Error, RunnerError}; use crate::runner::request::{cookie_storage_clear, cookie_storage_set, eval_request}; use crate::runner::response::{eval_asserts, eval_captures, eval_version_status_asserts}; +use crate::runner::result::{AssertResult, EntryResult}; use crate::runner::runner_options::RunnerOptions; use crate::runner::value::Value; use crate::util::logger::{Logger, Verbosity}; diff --git a/packages/hurl/src/runner/hurl_file.rs b/packages/hurl/src/runner/hurl_file.rs index 4da13dcb8..f165795a2 100644 --- a/packages/hurl/src/runner/hurl_file.rs +++ b/packages/hurl/src/runner/hurl_file.rs @@ -26,7 +26,7 @@ use hurl_core::error::Error; use hurl_core::parser; use crate::http::Call; -use crate::runner::core::*; +use crate::runner::result::*; use crate::runner::runner_options::RunnerOptions; use crate::runner::{entry, options, Value}; use crate::util::logger::{ErrorFormat, Logger, LoggerOptions, LoggerOptionsBuilder}; diff --git a/packages/hurl/src/runner/mod.rs b/packages/hurl/src/runner/mod.rs index 46ca66754..94b3d8ca1 100644 --- a/packages/hurl/src/runner/mod.rs +++ b/packages/hurl/src/runner/mod.rs @@ -18,17 +18,16 @@ //! A runner for Hurl files. If you want to execute an Hurl file, this is the right place. -pub use self::core::{AssertResult, CaptureResult, EntryResult, HurlResult}; pub use self::error::{Error, RunnerError}; pub use self::hurl_file::run; pub use self::number::Number; +pub use self::result::{AssertResult, CaptureResult, EntryResult, HurlResult}; pub use self::runner_options::{RunnerOptions, RunnerOptionsBuilder}; pub use self::value::Value; mod assert; mod body; mod capture; -mod core; mod entry; mod error; mod expr; @@ -45,6 +44,7 @@ mod query; mod regex; mod request; mod response; +mod result; mod runner_options; mod template; mod value; diff --git a/packages/hurl/src/runner/predicate.rs b/packages/hurl/src/runner/predicate.rs index cab5a8beb..4ed102f11 100644 --- a/packages/hurl/src/runner/predicate.rs +++ b/packages/hurl/src/runner/predicate.rs @@ -21,9 +21,9 @@ use std::collections::HashMap; use hurl_core::ast::*; use regex; -use crate::runner::core::PredicateResult; use crate::runner::error::Error; use crate::runner::predicate_value::{eval_predicate_value, eval_predicate_value_template}; +use crate::runner::result::PredicateResult; use crate::runner::template::eval_template; use crate::runner::value::Value; use crate::runner::{Number, RunnerError}; diff --git a/packages/hurl/src/runner/response.rs b/packages/hurl/src/runner/response.rs index 995f3630f..51521ae08 100644 --- a/packages/hurl/src/runner/response.rs +++ b/packages/hurl/src/runner/response.rs @@ -23,10 +23,10 @@ use crate::http; use crate::runner::assert::eval_assert; use crate::runner::body::eval_body; use crate::runner::capture::eval_capture; -use crate::runner::core::{AssertResult, CaptureResult}; use crate::runner::error::{Error, RunnerError}; use crate::runner::json::eval_json_value; use crate::runner::multiline::eval_multiline; +use crate::runner::result::{AssertResult, CaptureResult}; use crate::runner::template::eval_template; use crate::runner::Value; use crate::util::path::ContextDir; diff --git a/packages/hurl/src/runner/core.rs b/packages/hurl/src/runner/result.rs similarity index 100% rename from packages/hurl/src/runner/core.rs rename to packages/hurl/src/runner/result.rs