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

Function load_func_gadgets

src/program/gadget.rs:447–452  ·  view source on GitHub ↗
(deopt: &Deopt)

Source from the content-addressed store, hash-verified

445 }
446
447 pub fn load_func_gadgets(deopt: &Deopt) -> Result<Vec<FuncGadget>> {
448 let save_path = deopt.get_library_func_gadget_path()?.with_extension("json");
449 let content = std::fs::read_to_string(save_path)?;
450 let gadgets: Vec<FuncGadget> = serde_json::from_str(&content)?;
451 Ok(gadgets)
452 }
453}
454
455impl Deserialize for FuncGadget {

Callers 1

get_func_gadgetsFunction · 0.85

Calls 1

Tested by

no test coverage detected