Struct holochain_types::dna::MockDnaStore [−][src]
pub struct MockDnaStore { /* fields omitted */ }
Expand description
A readable and writable store of DnaFiles and EntryDefs
Implementations
Validate that all current expectations for all methods have been satisfied, and discard them.
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new
method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new
method can still be called
like <MockX as TraitY>::new
Create an Expectation
for mocking the add_dna
method
pub fn expect_add_dnas<T: IntoIterator<Item = (DnaHash, DnaFile)> + 'static>(
&mut self
) -> &mut Expectation<T>
pub fn expect_add_dnas<T: IntoIterator<Item = (DnaHash, DnaFile)> + 'static>(
&mut self
) -> &mut Expectation<T>
Create an Expectation
for mocking the add_dnas
method
Create an Expectation
for mocking the add_entry_def
method
pub fn expect_add_entry_defs<T: IntoIterator<Item = (EntryDefBufferKey, EntryDef)> + 'static>(
&mut self
) -> &mut Expectation<T>
pub fn expect_add_entry_defs<T: IntoIterator<Item = (EntryDefBufferKey, EntryDef)> + 'static>(
&mut self
) -> &mut Expectation<T>
Create an Expectation
for mocking the add_entry_defs
method
Create an Expectation
for mocking the list
method
Create an Expectation
for mocking the get
method
Create an Expectation
for mocking the get_entry_def
method
Trait Implementations
A readable and writable store of DnaFiles and EntryDefs
Add multiple DnaFiles to the store
Add an EntryDef to the store
fn add_entry_defs<T: IntoIterator<Item = (EntryDefBufferKey, EntryDef)> + 'static>(
&mut self,
entry_defs: T
)
fn add_entry_defs<T: IntoIterator<Item = (EntryDefBufferKey, EntryDef)> + 'static>(
&mut self,
entry_defs: T
)
Add multiple EntryDefs to the store
Get a particular EntryDef
Auto Trait Implementations
impl !RefUnwindSafe for MockDnaStore
impl Send for MockDnaStore
impl Sync for MockDnaStore
impl Unpin for MockDnaStore
impl !UnwindSafe for MockDnaStore
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more