pub struct GitlabRunnerMock { /* private fields */ }
Implementations§
Source§impl GitlabRunnerMock
impl GitlabRunnerMock
pub async fn start() -> Self
pub fn uri(&self) -> Url
pub fn runner_token(&self) -> &str
pub fn add_dummy_job(&self, name: String) -> MockJob
pub fn add_completed_job(&self, name: String, artifact: Vec<u8>) -> MockJob
pub fn job_builder(&self, name: String) -> MockJobBuilder
pub fn enqueue_job(&self, job: MockJob)
pub fn get_job(&self, id: u64) -> Option<MockJob>
pub async fn n_requests(&self) -> usize
pub fn update_interval(&self) -> u32
pub fn set_update_interval(&self, interval: u32)
pub fn set_expected_metadata_version<S: Into<String>>(&self, version: S)
pub fn set_expected_metadata_revision<S: Into<String>>(&self, revision: S)
pub fn set_expected_metadata_platform<S: Into<String>>(&self, platform: S)
pub fn set_expected_metadata_architecture<S: Into<String>>( &self, architecture: S, )
Trait Implementations§
Source§impl Clone for GitlabRunnerMock
impl Clone for GitlabRunnerMock
Source§fn clone(&self) -> GitlabRunnerMock
fn clone(&self) -> GitlabRunnerMock
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for GitlabRunnerMock
impl !RefUnwindSafe for GitlabRunnerMock
impl Send for GitlabRunnerMock
impl Sync for GitlabRunnerMock
impl Unpin for GitlabRunnerMock
impl !UnwindSafe for GitlabRunnerMock
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