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

Function get_func_gadget

src/program/gadget.rs:998–1000  ·  view source on GitHub ↗
(func: &str)

Source from the content-addressed store, hash-verified

996}
997
998pub fn get_func_gadget(func: &str) -> Option<&'static FuncGadget> {
999 get_func_gadgets().iter().find(|x| x.name == func)
1000}
1001
1002pub fn dump_func_gadgets_tostr() -> String {
1003 let gadgets = get_func_gadgets();

Callers 15

mutate_promptFunction · 0.85
load_promptFunction · 0.85
compute_densityMethod · 0.85
visit_library_callsMethod · 0.85
get_func_arg_decl_typeFunction · 0.85
makeup_call_list_argMethod · 0.85
deserializeMethod · 0.85

Calls 1

get_func_gadgetsFunction · 0.85

Tested by

no test coverage detected