pub struct VitestModuleMockOperationFact {
pub source: String,
pub call_start: u32,
pub action: VitestModuleMockAction,
}Expand description
Ordered Vitest module-mock operation with a static source target.
The declaring ModuleInfo::file_id owns the test-root provenance. The
resolver consumes source through its canonical specifier pipeline; this
fact deliberately carries no resolved path or duplicate diagnostic span.
Fields§
§source: StringStatic module specifier passed to vi.mock or vi.unmock.
call_start: u32Source-order position of the call within the declaring module.
action: VitestModuleMockActionTyped mock or unmock action.
Trait Implementations§
impl<'__de> Decode<'__de> for VitestModuleMockOperationFactwhere
'__de:,
impl Encode for VitestModuleMockOperationFact
impl Eq for VitestModuleMockOperationFact
impl StructuralPartialEq for VitestModuleMockOperationFact
Auto Trait Implementations§
impl Freeze for VitestModuleMockOperationFact
impl RefUnwindSafe for VitestModuleMockOperationFact
impl Send for VitestModuleMockOperationFact
impl Sync for VitestModuleMockOperationFact
impl Unpin for VitestModuleMockOperationFact
impl UnsafeUnpin for VitestModuleMockOperationFact
impl UnwindSafe for VitestModuleMockOperationFact
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.