()
| 434 | |
| 435 | #[test] |
| 436 | fn test_find_node() { |
| 437 | let graph = sample_graph(); |
| 438 | |
| 439 | let node = graph.find_node("n-1").unwrap(); |
| 440 | assert_eq!(node.kind, ProvenanceNodeKind::Goal); |
| 441 | assert_eq!(node.summary, "Fix the auth bug"); |
| 442 | |
| 443 | assert!(graph.find_node("nonexistent").is_none()); |
| 444 | } |
| 445 | |
| 446 | #[test] |
| 447 | fn test_nodes_of_kind() { |
nothing calls this directly
no test coverage detected