Function
diff_changes_contains_file
(values: &[Box<dyn Value>])
Source from the content-addressed store, hash-verified
| 250 | } |
| 251 | |
| 252 | fn diff_changes_contains_file(values: &[Box<dyn Value>]) -> Box<dyn Value> { |
| 253 | if let Some(changes) = values[0].as_any().downcast_ref::<DiffChangesValue>() { |
| 254 | let file = values[1].as_text().unwrap(); |
| 255 | for change in changes.changes.iter() { |
| 256 | if change.location.eq(&file) { |
| 257 | return Box::new(BoolValue::new_true()); |
| 258 | } |
| 259 | } |
| 260 | } |
| 261 | Box::new(BoolValue::new_false()) |
| 262 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…