pub struct Verifier {
pub sandbox: Sandbox,
pub scratch: PathBuf,
}Fields§
§sandbox: Sandbox§scratch: PathBufDirectory under which work trees are created.
Implementations§
Source§impl Verifier
impl Verifier
pub fn new(scratch: PathBuf) -> Self
Sourcepub fn syntax(
&self,
store: &Store,
files: &FileMap,
touched: &[String],
subject: &GitId,
) -> Result<Attestation>
pub fn syntax( &self, store: &Store, files: &FileMap, touched: &[String], subject: &GitId, ) -> Result<Attestation>
Static syntax check of every supported file that the change touched.
Sourcepub fn run(
&self,
store: &Store,
files: &FileMap,
subject: &GitId,
cfg: &Verification,
) -> Result<Vec<Attestation>>
pub fn run( &self, store: &Store, files: &FileMap, subject: &GitId, cfg: &Verification, ) -> Result<Vec<Attestation>>
Runs the configured build and test commands on files, then the
named checks in cfg.checks, in name order. One with no command (a
name the policy no longer defines) does not run: there is nothing
to pass it.
Auto Trait Implementations§
impl Forget for Verifier
impl Freeze for Verifier
impl RefUnwindSafe for Verifier
impl Send for Verifier
impl Sync for Verifier
impl Unpin for Verifier
impl UnsafeUnpin for Verifier
impl UnwindSafe for Verifier
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more