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

Function dump_func_gadgets_tostr

src/program/gadget.rs:1002–1010  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1000}
1001
1002pub fn dump_func_gadgets_tostr() -> String {
1003 let gadgets = get_func_gadgets();
1004 let gadgets = random_sample(gadgets, crate::config::MAX_CONTEXT_APIS);
1005 let mut dump_str = vec![];
1006 for gadget in gadgets {
1007 dump_str.push(gadget.gen_signature());
1008 }
1009 dump_str.join("\n")
1010}
1011
1012/// Get the functions with their fuzzable parameters.
1013/// Returned with the map of Function names and vectors of fuzzable parameters' positions.

Callers 1

get_sys_gen_messageFunction · 0.85

Calls 4

get_func_gadgetsFunction · 0.85
random_sampleFunction · 0.85
gen_signatureMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected