Struct nu_plugin::test_helpers::PluginTest
source · [−]pub struct PluginTest<'a, T: Plugin> { /* private fields */ }Implementations
sourceimpl<'a, T: Plugin> PluginTest<'a, T>
impl<'a, T: Plugin> PluginTest<'a, T>
pub fn for_plugin(plugin: &'a mut T) -> Self
pub fn args(&mut self, call_info: CallInfo) -> &mut PluginTest<'a, T>
pub fn configure(
&mut self,
callback: impl FnOnce(Vec<String>)
) -> &mut PluginTest<'a, T>
pub fn input(&mut self, value: Value) -> &mut PluginTest<'a, T>
pub fn test(&mut self) -> Result<Vec<ReturnValue>, ShellError>
pub fn setup(
&mut self,
callback: impl FnOnce(&mut T, Result<Vec<ReturnValue>, ShellError>)
) -> &mut PluginTest<'a, T>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for PluginTest<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for PluginTest<'a, T> where
T: Send,
impl<'a, T> Sync for PluginTest<'a, T> where
T: Sync,
impl<'a, T> Unpin for PluginTest<'a, T>
impl<'a, T> !UnwindSafe for PluginTest<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more