()
| 19 | } |
| 20 | |
| 21 | pub fn fileql_std_signatures() -> HashMap<&'static str, Signature> { |
| 22 | let mut map: HashMap<&'static str, Signature> = standard_function_signatures().to_owned(); |
| 23 | map.insert( |
| 24 | "files_count", |
| 25 | Signature { |
| 26 | parameters: vec![Box::new(TextType)], |
| 27 | return_type: Box::new(IntType), |
| 28 | }, |
| 29 | ); |
| 30 | map |
| 31 | } |
| 32 | |
| 33 | fn files_count(values: &[Box<dyn Value>]) -> Box<dyn Value> { |
| 34 | let path = values[0].as_text().unwrap(); |
no outgoing calls
no test coverage detected