MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / get_node_with_name

Method get_node_with_name

src/analysis/fdsan.rs:106–114  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

104
105impl ADG {
106 fn get_node_with_name(&self, name: &str) -> Vec<NodeIndex> {
107 let mut nodes = Vec::new();
108 for (node, idx) in self.node_map.iter() {
109 if node.get_name() == name {
110 nodes.push(*idx)
111 }
112 }
113 nodes
114 }
115
116 fn get_close_nodes(&self) -> Vec<NodeIndex> {
117 let mut nodes = Vec::new();

Callers 2

get_close_nodesMethod · 0.80
_get_open_nodesMethod · 0.80

Calls 2

get_nameMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected