()
| 463 | |
| 464 | #[test] |
| 465 | fn test_nodes_of_kind() { |
| 466 | let graph = sample_graph(); |
| 467 | |
| 468 | let goals = graph.nodes_of_kind(ProvenanceNodeKind::Goal); |
| 469 | assert_eq!(goals.len(), 1); |
| 470 | |
| 471 | let explorations = graph.nodes_of_kind(ProvenanceNodeKind::Exploration); |
| 472 | assert_eq!(explorations.len(), 2); |
| 473 | |
| 474 | let decisions = graph.nodes_of_kind(ProvenanceNodeKind::Decision); |
| 475 | assert!(decisions.is_empty()); |
| 476 | } |
| 477 | |
| 478 | // ---- Edge queries ---- |
| 479 |
nothing calls this directly
no test coverage detected