pub struct Test { /* private fields */ }
Expand description
. The test command evaluates rules against data files to determine success or failure based on pre-defined expected outcomes
Trait Implementations§
source§impl CommandBuilder<Test> for TestBuilder
impl CommandBuilder<Test> for TestBuilder
source§impl Executable for Test
impl Executable for Test
source§fn execute(&self, writer: &mut Writer, _: &mut Reader) -> Result<i32, Error>
fn execute(&self, writer: &mut Writer, _: &mut Reader) -> Result<i32, Error>
. test rules against provided data inputs, comparing expected outcomes to what’s evaluated
This function will return an error if
- conflicting attributes have been set
- any of the specified paths do not exist
- parse errors occur in the rule file
- illegal json or yaml syntax present in any of the data input files
source§impl FromArgMatches for Test
impl FromArgMatches for Test
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn 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
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl PartialEq for Test
impl PartialEq for Test
impl Eq for Test
impl StructuralPartialEq for Test
Auto Trait Implementations§
impl Freeze for Test
impl RefUnwindSafe for Test
impl Send for Test
impl Sync for Test
impl Unpin for Test
impl UnwindSafe for Test
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.