pub struct RemoteCompilationTest {
pub worker: VerificationWorkerConfig,
pub test_project: PathBuf,
pub timeout: Duration,
/* private fields */
}Expand description
Remote compilation test configuration and executor.
Fields§
§worker: VerificationWorkerConfigWorker configuration.
test_project: PathBufPath to the test project.
timeout: DurationTimeout for the entire test.
Implementations§
Source§impl RemoteCompilationTest
impl RemoteCompilationTest
Sourcepub fn new(worker: VerificationWorkerConfig, test_project: PathBuf) -> Self
pub fn new(worker: VerificationWorkerConfig, test_project: PathBuf) -> Self
Create a new remote compilation test.
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set the timeout for the test.
Sourcepub fn with_remote_path_suffix(self, suffix: impl AsRef<str>) -> Self
pub fn with_remote_path_suffix(self, suffix: impl AsRef<str>) -> Self
Set the remote project path suffix.
Sourcepub async fn run(&mut self) -> Result<VerificationResult>
pub async fn run(&mut self) -> Result<VerificationResult>
Run the full remote compilation verification test.
Sourcepub async fn cleanup_remote(&self) -> Result<()>
pub async fn cleanup_remote(&self) -> Result<()>
Clean up remote build artifacts.
Auto Trait Implementations§
impl Freeze for RemoteCompilationTest
impl RefUnwindSafe for RemoteCompilationTest
impl Send for RemoteCompilationTest
impl Sync for RemoteCompilationTest
impl Unpin for RemoteCompilationTest
impl UnsafeUnpin for RemoteCompilationTest
impl UnwindSafe for RemoteCompilationTest
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