()
| 413 | |
| 414 | #[test] |
| 415 | fn test_edges_from() { |
| 416 | let graph = sample_graph(); |
| 417 | |
| 418 | let from_goal = graph.edges_from("n-1"); |
| 419 | assert_eq!(from_goal.len(), 2); |
| 420 | assert!(from_goal |
| 421 | .iter() |
| 422 | .all(|e| e.kind == ProvenanceEdgeKind::LedTo)); |
| 423 | |
| 424 | let from_commit = graph.edges_from("n-4"); |
| 425 | assert_eq!(from_commit.len(), 1); |
| 426 | assert_eq!(from_commit[0].kind, ProvenanceEdgeKind::VerifiedBy); |
| 427 | } |
| 428 | |
| 429 | #[test] |
| 430 | fn test_edges_to() { |
nothing calls this directly
no test coverage detected