()
| 461 | |
| 462 | #[test] |
| 463 | fn test_edges_from() { |
| 464 | let graph = sample_graph(); |
| 465 | |
| 466 | let from_goal = graph.edges_from("n-1"); |
| 467 | assert_eq!(from_goal.len(), 2); |
| 468 | assert!(from_goal |
| 469 | .iter() |
| 470 | .all(|e| e.kind == ProvenanceEdgeKind::LedTo)); |
| 471 | |
| 472 | let from_commit = graph.edges_from("n-4"); |
| 473 | assert_eq!(from_commit.len(), 1); |
| 474 | assert_eq!(from_commit[0].kind, ProvenanceEdgeKind::VerifiedBy); |
| 475 | } |
| 476 | |
| 477 | #[test] |
| 478 | fn test_edges_to() { |
nothing calls this directly
no test coverage detected