The inline conflicted-file entries off the response's listing (the first record's line per file, in listing order).
(
response: &pb::InsertChangesResponse,
)
| 3988 | /// The inline conflicted-file entries off the response's listing (the |
| 3989 | /// first record's line per file, in listing order). |
| 3990 | fn insert_conflict_entries( |
| 3991 | response: &pb::InsertChangesResponse, |
| 3992 | ) -> Vec<super::insert::ConflictSummaryEntry> { |
| 3993 | let mut entries: Vec<super::insert::ConflictSummaryEntry> = Vec::new(); |
| 3994 | for conflict in &response.conflicts { |
| 3995 | if entries.iter().any(|entry| entry.path == conflict.path) { |
| 3996 | continue; |
| 3997 | } |
| 3998 | entries.push(super::insert::ConflictSummaryEntry { |
| 3999 | path: conflict.path.clone(), |
| 4000 | line: conflict.line.map(|line| line as u32), |
| 4001 | }); |
| 4002 | } |
| 4003 | entries |
| 4004 | } |
| 4005 | |
| 4006 | /// The local materialization report line + inline conflict summary over |
| 4007 | /// the wire-carried counts — rendered with the same output functions the |
no test coverage detected