pub struct TestNodeInfo {
pub node_id: String,
pub file_path: String,
pub lineno: Option<u32>,
pub name: String,
pub class_name: Option<String>,
pub markers: Vec<String>,
pub skip: bool,
pub xfail: bool,
}Expand description
Re-export commonly used types Test node information returned from daemon.
Fields§
§node_id: StringUnique node ID (pytest format).
file_path: StringFile path relative to repo root.
lineno: Option<u32>Line number where test is defined.
name: StringTest function/method name.
class_name: Option<String>Parent class name (if method).
markers: Vec<String>Markers attached to this test.
skip: boolWhether test is marked as skip.
xfail: boolWhether test is marked as xfail.
Trait Implementations§
Source§impl Clone for TestNodeInfo
impl Clone for TestNodeInfo
Source§fn clone(&self) -> TestNodeInfo
fn clone(&self) -> TestNodeInfo
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 TestNodeInfo
impl Debug for TestNodeInfo
Source§impl<'de> Deserialize<'de> for TestNodeInfo
impl<'de> Deserialize<'de> for TestNodeInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TestNodeInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TestNodeInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TestNode> for TestNodeInfo
impl From<TestNode> for TestNodeInfo
Source§impl From<TestNodeInfo> for TestNode
impl From<TestNodeInfo> for TestNode
Source§fn from(info: TestNodeInfo) -> Self
fn from(info: TestNodeInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TestNodeInfo
impl PartialEq for TestNodeInfo
Source§impl Serialize for TestNodeInfo
impl Serialize for TestNodeInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TestNodeInfo
Auto Trait Implementations§
impl Freeze for TestNodeInfo
impl RefUnwindSafe for TestNodeInfo
impl Send for TestNodeInfo
impl Sync for TestNodeInfo
impl Unpin for TestNodeInfo
impl UnsafeUnpin for TestNodeInfo
impl UnwindSafe for TestNodeInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more