(dir: &Path)
| 101 | "History", |
| 102 | ]; |
| 103 | |
| 104 | let mut failures = Vec::new(); |
| 105 | let mut routes = BTreeMap::<&str, &DocOut>::new(); |
| 106 | let mut nav_positions = BTreeSet::new(); |
| 107 | let mut found_groups = BTreeSet::new(); |
| 108 | |
| 109 | for doc in docs { |
| 110 | if doc.summary.trim().is_empty() { |
| 111 | failures.push(format!("{} has empty summary", doc.route_path)); |
| 112 | } |
| 113 | if routes.insert(doc.route_path.as_str(), doc).is_some() { |
| 114 | failures.push(format!("duplicate route {}", doc.route_path)); |
| 115 | } |
| 116 | if !nav_positions.insert(( |
| 117 | doc.collection.as_str(), |
| 118 | doc.nav_group.as_str(), |
| 119 | doc.nav_order, |
| 120 | )) { |
| 121 | failures.push(format!( |
| 122 | "duplicate nav order {} / {} / {}", |
| 123 | doc.collection, doc.nav_group, doc.nav_order |
| 124 | )); |
| 125 | } |
| 126 | if doc.collection == "docs" { |
no test coverage detected