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

Function test_find_node

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

Source from the content-addressed store, hash-verified

386
387#[test]
388fn test_find_node() {
389 let graph = sample_graph();
390
391 let node = graph.find_node("n-1").unwrap();
392 assert_eq!(node.kind, ProvenanceNodeKind::Goal);
393 assert_eq!(node.summary, "Fix the auth bug");
394
395 assert!(graph.find_node("nonexistent").is_none());
396}
397
398#[test]
399fn test_nodes_of_kind() {

Callers

nothing calls this directly

Calls 3

sample_graphFunction · 0.85
find_nodeMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected