Home
last modified time | relevance | path

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

/third_party/rust/crates/autocfg/src/
Dtests.rs121 fn probe_expression() { in probe_expression() function
123 assert!(ac.probe_expression(r#""test".trim_left()"#)); in probe_expression()
124 ac.assert_min(1, 30, ac.probe_expression(r#""test".trim_start()"#)); in probe_expression()
125 ac.assert_std(ac.probe_expression("[1, 2, 3].to_vec()")); in probe_expression()
Dlib.rs351 pub fn probe_expression(&self, expr: &str) -> bool { in probe_expression() method
358 if self.probe_expression(expr) { in emit_expression_cfg()
/third_party/rust/crates/autocfg/
DREADME.md54 - Add `probe_expression` and `emit_expression_cfg` to test arbitrary expressions.