(service: &LocalService, repository: &proto::RepositoryRef, message: &str)
| 235 | } |
| 236 | |
| 237 | async fn record(service: &LocalService, repository: &proto::RepositoryRef, message: &str) -> Hash { |
| 238 | let response: proto::RecordResponse = invoke( |
| 239 | service, |
| 240 | "/atomic.RepositoryMutationService/Record", |
| 241 | &proto::RecordRequest { |
| 242 | repository: Some(repository.clone()), |
| 243 | message: message.into(), |
| 244 | paths: vec!["hello.txt".into()], |
| 245 | ..Default::default() |
| 246 | }, |
| 247 | ) |
| 248 | .await; |
| 249 | atomic_core::types::Merkle( |
| 250 | response |
| 251 | .change |
| 252 | .unwrap() |
| 253 | .hash |
| 254 | .unwrap() |
| 255 | .value |
| 256 | .try_into() |
| 257 | .unwrap(), |
| 258 | ) |
| 259 | } |
| 260 | |
| 261 | // This binary has one test, so its temporary process-global identity/config |
| 262 | // environment cannot race another test in this binary. |
no test coverage detected