()
| 452 | |
| 453 | #[test] |
| 454 | fn test_find_node() { |
| 455 | let graph = sample_graph(); |
| 456 | |
| 457 | let node = graph.find_node("n-1").unwrap(); |
| 458 | assert_eq!(node.kind, ProvenanceNodeKind::Goal); |
| 459 | assert_eq!(node.summary, "Fix the auth bug"); |
| 460 | |
| 461 | assert!(graph.find_node("nonexistent").is_none()); |
| 462 | } |
| 463 | |
| 464 | #[test] |
| 465 | fn test_nodes_of_kind() { |
nothing calls this directly
no test coverage detected