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

Function test_find_node

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

Source from the content-addressed store, hash-verified

434
435#[test]
436fn test_find_node() {
437 let graph = sample_graph();
438
439 let node = graph.find_node("n-1").unwrap();
440 assert_eq!(node.kind, ProvenanceNodeKind::Goal);
441 assert_eq!(node.summary, "Fix the auth bug");
442
443 assert!(graph.find_node("nonexistent").is_none());
444}
445
446#[test]
447fn 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