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

Source from the content-addressed store, hash-verified

463
464#[test]
465fn 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

Callers

nothing calls this directly

Calls 2

sample_graphFunction · 0.85
nodes_of_kindMethod · 0.80

Tested by

no test coverage detected