()
| 397 | |
| 398 | #[test] |
| 399 | fn test_nodes_of_kind() { |
| 400 | let graph = sample_graph(); |
| 401 | |
| 402 | let goals = graph.nodes_of_kind(ProvenanceNodeKind::Goal); |
| 403 | assert_eq!(goals.len(), 1); |
| 404 | |
| 405 | let explorations = graph.nodes_of_kind(ProvenanceNodeKind::Exploration); |
| 406 | assert_eq!(explorations.len(), 2); |
| 407 | |
| 408 | let decisions = graph.nodes_of_kind(ProvenanceNodeKind::Decision); |
| 409 | assert!(decisions.is_empty()); |
| 410 | } |
| 411 | |
| 412 | // ---- Edge queries ---- |
| 413 |
nothing calls this directly
no test coverage detected