MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / delete_function

Function delete_function

nodedb/src/control/security/catalog/functions.rs:190–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188
189 #[test]
190 fn delete_function() {
191 let catalog = make_catalog();
192 catalog.put_function(&sample_function(1, "f")).unwrap();
193 assert!(catalog.delete_function(1, "f").unwrap());
194 assert!(!catalog.delete_function(1, "f").unwrap());
195 assert!(catalog.get_function(1, "f").unwrap().is_none());
196 }
197
198 #[test]
199 fn load_for_tenant_filters() {

Callers

nothing calls this directly

Calls 3

sample_functionFunction · 0.85
put_functionMethod · 0.80
make_catalogFunction · 0.70

Tested by

no test coverage detected