MCPcopy Create free account
hub / github.com/emwalker/digraph / link

Function link

backend/tests/git/link.rs:10–18  ·  view source on GitHub ↗
(f: &Fixtures, title: &str, parent_topic: &str)

Source from the content-addressed store, hash-verified

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() {

Callers 2

link_deletedFunction · 0.70
activity_log_updatedFunction · 0.70

Calls 3

valid_urlFunction · 0.85
parse_idFunction · 0.85
upsert_linkMethod · 0.45

Tested by

no test coverage detected