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

Function create_and_get_org

nodedb/src/control/security/org/store.rs:330–336  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

328
329 #[test]
330 fn create_and_get_org() {
331 let store = OrgStore::new();
332 store.create_org("acme", "Acme Corp", 1).unwrap();
333 let org = store.get("acme").unwrap();
334 assert_eq!(org.name, "Acme Corp");
335 assert_eq!(org.status, "active");
336 }
337
338 #[test]
339 fn set_org_status() {

Callers

nothing calls this directly

Calls 2

create_orgMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected