Home
last modified time | relevance | path

Searched refs:assert_vis_parse (Results 1 – 1 of 1) sorted by relevance

/external/rust/crates/syn/tests/
Dtest_visibility.rs24 macro_rules! assert_vis_parse { macro
26 assert_vis_parse!($input, Ok($p) + "");
50 assert_vis_parse!("pub", Ok(Visibility::Public(_))); in test_pub()
55 assert_vis_parse!("crate", Ok(Visibility::Crate(_))); in test_crate()
60 assert_vis_parse!("", Ok(Visibility::Inherited)); in test_inherited()
65 assert_vis_parse!("pub(in foo::bar)", Ok(Visibility::Restricted(_))); in test_in()
70 assert_vis_parse!("pub(crate)", Ok(Visibility::Restricted(_))); in test_pub_crate()
75 assert_vis_parse!("pub(self)", Ok(Visibility::Restricted(_))); in test_pub_self()
80 assert_vis_parse!("pub(super)", Ok(Visibility::Restricted(_))); in test_pub_super()
85 assert_vis_parse!("pub(foo::bar)", Ok(Visibility::Public(_)) + "(foo::bar)"); in test_missing_in()
[all …]