pub(crate) struct Schedule {
opts: Opts,
file_manager: Arc<FileManager>,
psql: Arc<Psql>,
schedules: Vec<Vec<String>>,
}
Fields§
§opts: Opts
§file_manager: Arc<FileManager>
§psql: Arc<Psql>
§schedules: Vec<Vec<String>>
Schedules of test names.
Each item is called a parallel schedule, which runs parallel.
Implementations§
Source§impl Schedule
impl Schedule
pub(crate) fn new(opts: Opts) -> Result<Self>
async fn do_init(self) -> Result<Self>
fn parse_from<P: AsRef<Path>>(path: P) -> Result<Vec<Vec<String>>>
Sourcepub(crate) async fn run(self) -> Result<()>
pub(crate) async fn run(self) -> Result<()>
Run all test schedules.
§Returns
Ok
If no error happens and all outputs are expected,
Err
If any error happens, or some outputs are unexpected. Details are logged in log file.
async fn do_run(self) -> Result<()>
async fn run_one_schedule( &self, tests: impl Iterator<Item = &str>, ) -> Result<HashMap<String, TestResult>>
fn create_test_case(&self, test_name: &str) -> TestCase
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnwindSafe for Schedule
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