pub struct HydrateDehydrateTest {
pub cas_dir: PathBuf,
pub src_dir: PathBuf,
pub ptr_dir: PathBuf,
pub dest_dir: PathBuf,
/* private fields */
}Fields§
§cas_dir: PathBuf§src_dir: PathBuf§ptr_dir: PathBuf§dest_dir: PathBufImplementations§
Source§impl HydrateDehydrateTest
impl HydrateDehydrateTest
Sourcepub fn new(use_test_server: bool) -> Self
pub fn new(use_test_server: bool) -> Self
Creates a new test harness with the specified options.
§Arguments
use_test_server- If true, uses a LocalTestServer (RemoteClient over HTTP); otherwise uses LocalClient directly.
Sourcepub fn for_mode(mode: HydrationMode) -> Self
pub fn for_mode(mode: HydrationMode) -> Self
Creates a new test harness configured for a specific hydration mode.
Sourcepub async fn apply_hydration_mode(&mut self, mode: HydrationMode)
pub async fn apply_hydration_mode(&mut self, mode: HydrationMode)
Applies hydration mode configuration to the test server.
Must be called after dehydrate() and before hydrate().
pub async fn new_upload_session(&self) -> Arc<FileUploadSession>
pub async fn clean_all_files( &self, upload_session: &Arc<FileUploadSession>, sequential: bool, )
pub async fn dehydrate(&mut self, sequential: bool)
pub async fn hydrate(&mut self)
pub async fn hydrate_partitioned_writers(&mut self, partitions: usize)
pub async fn hydrate_stream(&mut self)
pub fn verify_src_dest_match(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HydrateDehydrateTest
impl RefUnwindSafe for HydrateDehydrateTest
impl Send for HydrateDehydrateTest
impl Sync for HydrateDehydrateTest
impl Unpin for HydrateDehydrateTest
impl UnsafeUnpin for HydrateDehydrateTest
impl UnwindSafe for HydrateDehydrateTest
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> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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