pub struct TestSubjects {
pub test: Option<String>,
pub path: String,
pub present: bool,
pub reproduce: Option<String>,
pub proves: Vec<RuleSummary>,
pub sole_proof_of: Vec<String>,
}Expand description
What one test proves: the reverse of RuleDetail.
§Example
The reverse of rules show: what a test proves, and which rules would be left with no
proof at all if it were deleted.
use majordomus_cli::capability::builtin::rules::TestSubjects;
let t = TestSubjects {
test: Some("suite:07_scope".into()),
path: "test/cases/07_scope.sh".into(),
present: true,
reproduce: Some("bash test/run.sh 07_scope".into()),
proves: vec![],
sole_proof_of: vec![],
};
assert!(t.present);Fields§
§test: Option<String>The canonical test identity, when a runner owns the path.
path: StringThe path as given.
present: boolWhether that path is in the tree.
reproduce: Option<String>The command that runs it again.
proves: Vec<RuleSummary>Every rule that names this test, with the state it is in.
sole_proof_of: Vec<String>Every rule that would lose its only proof if this test were deleted. This is the question the one-way relation could never answer.
Trait Implementations§
Source§impl Clone for TestSubjects
impl Clone for TestSubjects
Source§fn clone(&self) -> TestSubjects
fn clone(&self) -> TestSubjects
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestSubjects
impl Debug for TestSubjects
Source§impl<'de> Deserialize<'de> for TestSubjects
impl<'de> Deserialize<'de> for TestSubjects
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TestSubjects
Source§impl JsonSchema for TestSubjects
impl JsonSchema for TestSubjects
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TestSubjects
impl PartialEq for TestSubjects
Source§fn eq(&self, other: &TestSubjects) -> bool
fn eq(&self, other: &TestSubjects) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TestSubjects
impl Serialize for TestSubjects
impl StructuralPartialEq for TestSubjects
Auto Trait Implementations§
impl Freeze for TestSubjects
impl RefUnwindSafe for TestSubjects
impl Send for TestSubjects
impl Sync for TestSubjects
impl Unpin for TestSubjects
impl UnsafeUnpin for TestSubjects
impl UnwindSafe for TestSubjects
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.