()
| 445 | |
| 446 | #[test] |
| 447 | fn test_nodes_of_kind() { |
| 448 | let graph = sample_graph(); |
| 449 | |
| 450 | let goals = graph.nodes_of_kind(ProvenanceNodeKind::Goal); |
| 451 | assert_eq!(goals.len(), 1); |
| 452 | |
| 453 | let explorations = graph.nodes_of_kind(ProvenanceNodeKind::Exploration); |
| 454 | assert_eq!(explorations.len(), 2); |
| 455 | |
| 456 | let decisions = graph.nodes_of_kind(ProvenanceNodeKind::Decision); |
| 457 | assert!(decisions.is_empty()); |
| 458 | } |
| 459 | |
| 460 | // ---- Edge queries ---- |
| 461 |
nothing calls this directly
no test coverage detected