Struct move_unit_test::UnitTestingConfig
source · [−]pub struct UnitTestingConfig {
pub instruction_execution_bound: u64,
pub filter: Option<String>,
pub list: bool,
pub num_threads: usize,
pub dep_files: Vec<String>,
pub report_statistics: bool,
pub report_storage_on_error: bool,
pub report_stacktrace_on_abort: bool,
pub named_address_values: Vec<(String, NumericalAddress)>,
pub source_files: Vec<String>,
pub check_stackless_vm: bool,
pub verbose: bool,
}Fields
instruction_execution_bound: u64Bound the number of instructions that can be executed by any one test.
filter: Option<String>A filter string to determine which unit tests to run
list: boolList all tests
num_threads: usizeNumber of threads to use for running tests.
dep_files: Vec<String>Dependency files
report_statistics: boolReport test statistics at the end of testing
report_storage_on_error: boolShow the storage state at the end of execution of a failing test
report_stacktrace_on_abort: boolnamed_address_values: Vec<(String, NumericalAddress)>Named address mapping
source_files: Vec<String>Source files
check_stackless_vm: boolUse the stackless bytecode interpreter to run the tests and cross check its results with the execution result from Move VM.
verbose: boolVerbose mode
Implementations
sourceimpl UnitTestingConfig
impl UnitTestingConfig
sourcepub fn default_with_bound(bound: Option<u64>) -> Self
pub fn default_with_bound(bound: Option<u64>) -> Self
Create a unit testing config for use with register_move_unit_tests
pub fn with_named_addresses(
self,
named_address_values: BTreeMap<String, NumericalAddress>
) -> Self
sourcepub fn build_test_plan(&self) -> Option<TestPlan>
pub fn build_test_plan(&self) -> Option<TestPlan>
Build a test plan from a unit test config
Trait Implementations
sourceimpl Args for UnitTestingConfig
impl Args for UnitTestingConfig
sourceimpl Clone for UnitTestingConfig
impl Clone for UnitTestingConfig
sourcefn clone(&self) -> UnitTestingConfig
fn clone(&self) -> UnitTestingConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl CommandFactory for UnitTestingConfig
impl CommandFactory for UnitTestingConfig
sourcefn into_app<'b>() -> Command<'b>
fn into_app<'b>() -> Command<'b>
Replaced with `CommandFactory::command
Deprecated, replaced with CommandFactory::command
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Replaced with `CommandFactory::command_for_update
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl Debug for UnitTestingConfig
impl Debug for UnitTestingConfig
sourceimpl FromArgMatches for UnitTestingConfig
impl FromArgMatches for UnitTestingConfig
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches to self.
sourceimpl Parser for UnitTestingConfig
impl Parser for UnitTestingConfig
sourcefn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations
impl RefUnwindSafe for UnitTestingConfig
impl Send for UnitTestingConfig
impl Sync for UnitTestingConfig
impl Unpin for UnitTestingConfig
impl UnwindSafe for UnitTestingConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more