pub struct TestUploader { /* private fields */ }Implementations§
Source§impl TestUploader
impl TestUploader
pub fn new(config: TestUploaderConfig) -> Result<Self, String>
Sourcepub fn anonymize_junit_xml(&self, xml_content: &[u8]) -> Vec<u8> ⓘ
pub fn anonymize_junit_xml(&self, xml_content: &[u8]) -> Vec<u8> ⓘ
Anonymize JUnit XML test results for privacy Removes hostnames and anonymizes file paths and test names in test attributes
Sourcepub fn upload_file(
&self,
file_path: &str,
language: &str,
coverage_format: &str,
) -> Result<(), String>
pub fn upload_file( &self, file_path: &str, language: &str, coverage_format: &str, ) -> Result<(), String>
Upload a single coverage file
Sourcepub fn upload_files(
&self,
files: Vec<(String, String, String)>,
) -> Result<(), String>
pub fn upload_files( &self, files: Vec<(String, String, String)>, ) -> Result<(), String>
Upload multiple coverage files
Sourcepub fn upload_test_files(&self, files: &[PathBuf]) -> Result<(), String>
pub fn upload_test_files(&self, files: &[PathBuf]) -> Result<(), String>
Upload JUnit XML test result files
This method uploads JUnit XML test result files to the backend for analysis. It handles anonymization of file paths and test names if enabled in the config.
§Arguments
files- Slice of PathBuf pointing to JUnit XML files to upload
§Returns
Ok(())on successful uploadErr(String)with error message on failure
Auto Trait Implementations§
impl Freeze for TestUploader
impl !RefUnwindSafe for TestUploader
impl Send for TestUploader
impl Sync for TestUploader
impl Unpin for TestUploader
impl !UnwindSafe for TestUploader
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