pub struct TestFunction {
pub name: String,
pub file_path: PathBuf,
pub target_name: String,
pub test_type: TestType,
pub tags: Vec<String>,
}Expand description
Represents an individual test function with its metadata
Fields§
§name: StringThe name of the test function (e.g., “test_database_connection”)
file_path: PathBufThe file containing this test
target_name: StringThe name of the test target (file stem for integration tests, “lib” for unit tests)
test_type: TestTypeThe type of test (unit, integration, etc.)
Tags associated with this specific test function
Trait Implementations§
Source§impl Clone for TestFunction
impl Clone for TestFunction
Source§fn clone(&self) -> TestFunction
fn clone(&self) -> TestFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestFunction
impl Debug for TestFunction
Source§impl<'de> Deserialize<'de> for TestFunction
impl<'de> Deserialize<'de> for TestFunction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TestFunction
impl RefUnwindSafe for TestFunction
impl Send for TestFunction
impl Sync for TestFunction
impl Unpin for TestFunction
impl UnsafeUnpin for TestFunction
impl UnwindSafe for TestFunction
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