use crate::path::SimplePath;
pub type AttributePath = SimplePath;
#[cfg(test)]
mod tests {
use super::AttributePath;
use rstest::rstest;
#[rstest]
fn parses_paths() {
let path = AttributePath::from("tokio::test");
assert_eq!(path.segments(), &["tokio", "test"]);
}
#[rstest]
fn recognizes_doc_paths() {
assert!(AttributePath::from("doc").is_doc());
assert!(!AttributePath::from("allow").is_doc());
}
}