#[non_exhaustive]pub enum ContractCheckOutcome {
Passed,
RejectedAsExpected,
NotApplicable {
reason: String,
},
Unverified {
reason: String,
},
SkippedOptional {
reason: String,
},
Failed {
reason: String,
},
NotRun {
reason: String,
},
}Expand description
The observable result of one stable contract check.
§Examples
use qubit_fs_testkit::ContractCheckOutcome;
let outcome = ContractCheckOutcome::NotApplicable {
reason: "provider does not expose server-side copy".to_owned(),
};
assert!(matches!(outcome, ContractCheckOutcome::NotApplicable { .. }));Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Passed
The provider satisfied the check.
RejectedAsExpected
The provider rejected a request that the contract requires it to reject.
NotApplicable
The check does not apply to this fixture or provider configuration.
Unverified
The check could not be verified from the fixture’s available evidence.
SkippedOptional
An optional diagnostic probe was unavailable.
Failed
The executed check violated a contract or its fixture failed.
NotRun
Execution ended before this registered check could run.
Trait Implementations§
Source§impl Clone for ContractCheckOutcome
impl Clone for ContractCheckOutcome
Source§impl Debug for ContractCheckOutcome
impl Debug for ContractCheckOutcome
impl Eq for ContractCheckOutcome
Source§impl PartialEq for ContractCheckOutcome
impl PartialEq for ContractCheckOutcome
impl StructuralPartialEq for ContractCheckOutcome
Auto Trait Implementations§
impl Forget for ContractCheckOutcome
impl Freeze for ContractCheckOutcome
impl Move for ContractCheckOutcome
impl RefUnwindSafe for ContractCheckOutcome
impl Send for ContractCheckOutcome
impl Sync for ContractCheckOutcome
impl Unpin for ContractCheckOutcome
impl UnsafeUnpin for ContractCheckOutcome
impl UnwindSafe for ContractCheckOutcome
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