MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_nodes_of_kind

Function test_nodes_of_kind

atomic-core/src/change/provenance_graph/tests.rs:399–410  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397
398#[test]
399fn 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

Callers

nothing calls this directly

Calls 2

sample_graphFunction · 0.85
nodes_of_kindMethod · 0.80

Tested by

no test coverage detected