pub struct MockDependencyResolver { /* private fields */ }Expand description
Mock dependency resolver for testing Allows tests to control dependency resolution behavior
Implementations§
Source§impl MockDependencyResolver
impl MockDependencyResolver
Trait Implementations§
Source§impl Clone for MockDependencyResolver
impl Clone for MockDependencyResolver
Source§fn clone(&self) -> MockDependencyResolver
fn clone(&self) -> MockDependencyResolver
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MockDependencyResolver
impl Debug for MockDependencyResolver
Source§impl Default for MockDependencyResolver
impl Default for MockDependencyResolver
Source§impl DependencyResolutionStrategy for MockDependencyResolver
impl DependencyResolutionStrategy for MockDependencyResolver
Source§fn resolve_dependency(
&self,
group_id: &str,
artifact_id: &str,
version: &str,
) -> MavenResult<Option<String>>
fn resolve_dependency( &self, group_id: &str, artifact_id: &str, version: &str, ) -> MavenResult<Option<String>>
Resolve a single dependency
Source§fn resolve_dependencies(
&self,
dependencies: &[(String, String, String)],
) -> MavenResult<Vec<String>>
fn resolve_dependencies( &self, dependencies: &[(String, String, String)], ) -> MavenResult<Vec<String>>
Resolve multiple dependencies
Auto Trait Implementations§
impl Freeze for MockDependencyResolver
impl RefUnwindSafe for MockDependencyResolver
impl Send for MockDependencyResolver
impl Sync for MockDependencyResolver
impl Unpin for MockDependencyResolver
impl UnsafeUnpin for MockDependencyResolver
impl UnwindSafe for MockDependencyResolver
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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 more