pub struct FixedOracle {
pub answer: SrcChange,
}Expand description
A deterministic oracle that answers a FIXED SrcChange regardless of the
queried commit. It exists so the CLI run --dry-run --gate --fixture-oracle
path can certify a SYNTHETIC/fixture commit (which by construction is not in any
git repo, so the live GitSrcOracle would answer UNKNOWN("commit … not in repo") and refuse at the freshness gate). NEVER select this on a LIVE run — the
caller must keep real measurements on GitSrcOracle so a real finding’s
freshness is checked against actual src/ changes. The choice MUST be explicit
and logged.
Fields§
§answer: SrcChangeImplementations§
Source§impl FixedOracle
impl FixedOracle
Sourcepub fn fresh() -> FixedOracle
pub fn fresh() -> FixedOracle
A fixture oracle that always answers FRESH (the dry-run certification case).
Trait Implementations§
Source§impl SrcChangeOracle for FixedOracle
impl SrcChangeOracle for FixedOracle
fn src_changed_since(&self, _commit_sha: &str) -> SrcChange
Auto Trait Implementations§
impl Freeze for FixedOracle
impl RefUnwindSafe for FixedOracle
impl Send for FixedOracle
impl Sync for FixedOracle
impl Unpin for FixedOracle
impl UnsafeUnpin for FixedOracle
impl UnwindSafe for FixedOracle
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