pub struct FalsificationTest {
pub id: String,
pub rule: String,
pub prediction: String,
pub test: Option<String>,
pub if_fails: String,
}Expand description
A Popperian falsification test.
Each makes a falsifiable prediction about the implementation. If the prediction is wrong, the test identifies root cause.
Fields§
§id: String§rule: StringWhat the test asserts. Alias description accepted for legacy
pre-APR-MONO contracts that used the description: field name.
name: is NOT aliased because several legacy contracts (e.g.
publish-manifest-v1) ship both name: (a slug) and
description: (prose) side-by-side; aliasing both collapses to
a duplicate field error.
prediction: StringThe predicted outcome if the rule holds. Alias expected accepted
for legacy contracts (e.g. expected: exit 0, expected: "PASS").
Defaulted because diagnostic contracts often encode prediction
inside the rule text alone.
test: Option<String>How to run the test. Alias command accepted for legacy contracts
(e.g. shell snippets under command: |).
if_fails: StringWhat failure means. Alias fails_if accepted for legacy contracts.
Defaulted because several legacy diagnostic contracts omit it.
Trait Implementations§
Source§impl Clone for FalsificationTest
impl Clone for FalsificationTest
Source§fn clone(&self) -> FalsificationTest
fn clone(&self) -> FalsificationTest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more