()
| 195 | // |
| 196 | #[test] |
| 197 | fn topic_search() { |
| 198 | let f = Fixtures::copy("simple"); |
| 199 | |
| 200 | let root = ExternalId::root_topic(); |
| 201 | let climate_change = f.find_topic("Climate change").unwrap(); |
| 202 | let query = format!("in:{climate_change}"); |
| 203 | |
| 204 | let matches = search(&f, &root, &query, true); |
| 205 | assert_eq!(count(Kind::Topic, &matches), 2); |
| 206 | assert_eq!(count(Kind::Link, &matches), 3); |
| 207 | } |
| 208 | |
| 209 | #[test] |
| 210 | fn combined_search() { |
nothing calls this directly
no test coverage detected