[−][src]Struct dockertest::DockerTest
Represents the docker test environment, and keep track of all containers that should be started.
Methods
impl DockerTest
[src]
pub fn new() -> DockerTest
[src]
Creates a new DockerTest.
pub fn with_default_source(self, default_source: Source) -> DockerTest
[src]
Sets the default source for all images. All images without a specified source will be pulled from the default source. DockerTest will default to Local if no default source is provided.
pub fn with_namespace<T: ToString>(self, name: T) -> DockerTest
[src]
Sets the namespace for all containers created by dockerTest. All container names will be prefixed with this namespace. DockerTest defaults to the namespace "dockertest-rs".
pub fn run<T>(&self, test: T) where
T: FnOnce(&DockerOperations) + UnwindSafe,
[src]
T: FnOnce(&DockerOperations) + UnwindSafe,
Execute the test body within the provided function closure. All Compositions added to the DockerTest has successfully completed their WaitFor clause once the test body is executed.
pub fn add_composition(&mut self, instance: Composition)
[src]
Add a Composition to this DockerTest.
Trait Implementations
impl Default for DockerTest
[src]
fn default() -> DockerTest
[src]
Auto Trait Implementations
impl !Send for DockerTest
impl !Sync for DockerTest
impl Unpin for DockerTest
impl !UnwindSafe for DockerTest
impl !RefUnwindSafe for DockerTest
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,