(f: &Fixtures, title: &str, parent_topic: &str)
| 8 | use digraph::git::{activity, DeleteLink, RepoLink, UpsertLinkResult}; |
| 9 | |
| 10 | fn link(f: &Fixtures, title: &str, parent_topic: &str) -> RepoLink { |
| 11 | let url = valid_url(); |
| 12 | let topic_id = parse_id(parent_topic); |
| 13 | |
| 14 | let UpsertLinkResult { link, .. } = |
| 15 | f.upsert_link(RepoId::wiki(), &url, Some(title.into()), Some(topic_id)); |
| 16 | |
| 17 | link.unwrap() |
| 18 | } |
| 19 | |
| 20 | #[test] |
| 21 | fn link_deleted() { |
no test coverage detected