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

Function is_library_api

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

Source from the content-addressed store, hash-verified

992}
993
994pub fn is_library_api(func: &str) -> bool {
995 get_func_gadget(func).is_some()
996}
997
998pub fn get_func_gadget(func: &str) -> Option<&'static FuncGadget> {
999 get_func_gadgets().iter().find(|x| x.name == func)

Callers 5

adg_precallMethod · 0.85
adg_post_callMethod · 0.85
_get_api_nodesMethod · 0.85
get_call_linesMethod · 0.85
get_callerMethod · 0.85

Calls 1

get_func_gadgetFunction · 0.85

Tested by

no test coverage detected