#[non_exhaustive]pub enum MockCall {
Show 26 variants
ViMock,
ViDoMock,
ViUnmock,
ViDoUnmock,
ViImportActual,
ViImportMock,
JestMock,
JestDoMock,
JestUnmock,
JestDontMock,
JestRequireActual,
JestRequireMock,
JestCreateMockFromModule,
JestGenMockFromModule,
RsMock,
RsMockRequire,
RsDoMock,
RsDoMockRequire,
RsUnmock,
RsDoUnmock,
RsUnmockRequire,
RsDoUnmockRequire,
RsImportActual,
RsImportMock,
RsRequireActual,
RsRequireMock,
}Expand description
A test-runner call that names a module, recorded on an ImportKind::Mock import. It serializes as the call is
written ("vi.mock").
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ViMock
vi.mock("x").
ViDoMock
vi.doMock("x").
ViUnmock
vi.unmock("x").
ViDoUnmock
vi.doUnmock("x").
ViImportActual
vi.importActual("x").
ViImportMock
vi.importMock("x").
JestMock
jest.mock("x").
JestDoMock
jest.doMock("x").
JestUnmock
jest.unmock("x").
JestDontMock
jest.dontMock("x").
JestRequireActual
jest.requireActual("x").
JestRequireMock
jest.requireMock("x").
JestCreateMockFromModule
jest.createMockFromModule("x").
JestGenMockFromModule
jest.genMockFromModule("x").
RsMock
rs.mock("x") (also written rstest.mock).
RsMockRequire
rs.mockRequire("x") (also written rstest.mockRequire).
RsDoMock
rs.doMock("x") (also written rstest.doMock).
RsDoMockRequire
rs.doMockRequire("x") (also written rstest.doMockRequire).
RsUnmock
rs.unmock("x") (also written rstest.unmock).
RsDoUnmock
rs.doUnmock("x") (also written rstest.doUnmock).
RsUnmockRequire
rs.unmockRequire("x") (also written rstest.unmockRequire).
RsDoUnmockRequire
rs.doUnmockRequire("x") (also written rstest.doUnmockRequire).
RsImportActual
rs.importActual("x") (also written rstest.importActual).
RsImportMock
rs.importMock("x") (also written rstest.importMock).
RsRequireActual
rs.requireActual("x") (also written rstest.requireActual).
RsRequireMock
rs.requireMock("x") (also written rstest.requireMock).
Implementations§
Trait Implementations§
impl Copy for MockCall
Source§impl<'de> Deserialize<'de> for MockCall
impl<'de> Deserialize<'de> for MockCall
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>,
impl Eq for MockCall
impl StructuralPartialEq for MockCall
Auto Trait Implementations§
impl Forget for MockCall
impl Freeze for MockCall
impl Move for MockCall
impl RefUnwindSafe for MockCall
impl Send for MockCall
impl Sync for MockCall
impl Unpin for MockCall
impl UnsafeUnpin for MockCall
impl UnwindSafe for MockCall
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
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>,
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
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more