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:447–458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

445
446#[test]
447fn 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

Callers

nothing calls this directly

Calls 2

sample_graphFunction · 0.85
nodes_of_kindMethod · 0.80

Tested by

no test coverage detected