()
| 479 | |
| 480 | #[test] |
| 481 | fn test_edges_from() { |
| 482 | let graph = sample_graph(); |
| 483 | |
| 484 | let from_goal = graph.edges_from("n-1"); |
| 485 | assert_eq!(from_goal.len(), 2); |
| 486 | assert!(from_goal |
| 487 | .iter() |
| 488 | .all(|e| e.kind == ProvenanceEdgeKind::LedTo)); |
| 489 | |
| 490 | let from_commit = graph.edges_from("n-4"); |
| 491 | assert_eq!(from_commit.len(), 1); |
| 492 | assert_eq!(from_commit[0].kind, ProvenanceEdgeKind::VerifiedBy); |
| 493 | } |
| 494 | |
| 495 | #[test] |
| 496 | fn test_edges_to() { |
nothing calls this directly
no test coverage detected