MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_edges_to

Function test_edges_to

atomic-core/src/change/provenance_graph/tests.rs:430–438  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

428
429#[test]
430fn test_edges_to() {
431 let graph = sample_graph();
432
433 let to_commit = graph.edges_to("n-4");
434 assert_eq!(to_commit.len(), 2);
435 assert!(to_commit
436 .iter()
437 .all(|e| e.kind == ProvenanceEdgeKind::ExploredVia));
438}
439
440// ---- Backward traversal ----
441

Callers

nothing calls this directly

Calls 2

sample_graphFunction · 0.85
edges_toMethod · 0.80

Tested by

no test coverage detected