Function
source
(
outputs: Vec<Result<CommandOutput, ChangeSourceError>>,
limit: usize,
)
Source from the content-addressed store, hash-verified
| 206 | } |
| 207 | |
| 208 | fn source( |
| 209 | outputs: Vec<Result<CommandOutput, ChangeSourceError>>, |
| 210 | limit: usize, |
| 211 | ) -> WatchmanChangeSource { |
| 212 | WatchmanChangeSource::with_runner( |
| 213 | Arc::new(FakeRunner(Mutex::new(outputs.into()))), |
| 214 | Duration::from_secs(1), |
| 215 | limit, |
| 216 | ) |
| 217 | } |
| 218 | |
| 219 | fn output(json: &str) -> Result<CommandOutput, ChangeSourceError> { |
| 220 | Ok(CommandOutput { |