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