()
| 386 | |
| 387 | #[test] |
| 388 | fn test_find_node() { |
| 389 | let graph = sample_graph(); |
| 390 | |
| 391 | let node = graph.find_node("n-1").unwrap(); |
| 392 | assert_eq!(node.kind, ProvenanceNodeKind::Goal); |
| 393 | assert_eq!(node.summary, "Fix the auth bug"); |
| 394 | |
| 395 | assert!(graph.find_node("nonexistent").is_none()); |
| 396 | } |
| 397 | |
| 398 | #[test] |
| 399 | fn test_nodes_of_kind() { |
nothing calls this directly
no test coverage detected